It is currently Sun May 19, 2013 12:31 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: [HOW TO] Enabling Print-Screen and Windows key
PostPosted: Sun Dec 03, 2006 4:11 pm 
Regular Zenwalker
Regular Zenwalker
User avatar

Joined: Fri Mar 10, 2006 2:19 pm
Posts: 59
Location: Hyderabad, India
This is how I enabled the PrtScr key to take a screenshot and the Windows logo key to popup the Xfce menu...

Initially I set the print screen key to keysym 'F13' and the windows keys to 'F14' and 'F15' respectively.

Code:
$xmodmap -e "keycode 111 = F13" &
$xmodmap -e "keycode 115 = F14" &
$xmodmap -e "keycode 116 = F15" &


Then I added shortcuts for each using 'Keyboard Settings'.

Quote:
xfce4-popup-menu                  F14
xfce4-popup-menu                  F15

xwd -root -out screen.dmp    F13

Image

Then I added the following at the beginning of the ~/.xinitrc file.

Code:
xmodmap -e "keycode 111 = F13" &
xmodmap -e "keycode 115 = F14" &
xmodmap -e "keycode 116 = F15" &


Thats it!

Logout and start X.

When we press PrtScr key, the screenshot will be stored in the home directory as screen.dmp.  And when we press winkeys, the Xfce menu will pop-up.

_________________
Image


Last edited by neo on Sun Dec 03, 2006 4:13 pm, edited 1 time in total.

 Profile Send private message  
 
 Post subject: Re: [HOW TO] Enabling Print-Screen and Windows key
PostPosted: Sun Dec 03, 2006 5:04 pm 
Master Zenwalker
Master Zenwalker

Joined: Wed Mar 15, 2006 3:05 pm
Posts: 684
Location: Norridge, IL
Is there a command-line tool to convert the xwd file into something more usable like jpeg or png?  I can open a screen dump with the GIMP, but I can use the GIMP to take screenshots w/o using xwd.

_________________
Nigerian Officer: "Star Monkeys on the scope, sir. ...thousands of them!"
---
Join Team Zenwalk
Current Wallpaper


Last edited by michael on Sun Dec 03, 2006 5:06 pm, edited 1 time in total.

 Profile Send private message  
 
 Post subject: Re: [HOW TO] Enabling Print-Screen and Windows key
PostPosted: Sun Dec 03, 2006 6:12 pm 
Experienced Zenwalker
Experienced Zenwalker

Joined: Sat Mar 11, 2006 11:18 am
Posts: 209
michael: you can use import -window root screen.jpg instead.


 Profile Send private message  
 
 Post subject: Re: [HOW TO] Enabling Print-Screen and Windows key
PostPosted: Sun Dec 03, 2006 10:44 pm 

If you have two windows keys, then you most likely have a PC-105 keyboard (or one of its derivatives). If you set the "XkbModel" in your '/etc/X11/xorg.conf' to "pc105", then you can probably leave all the xmodmap stuff out of the How-To. Your keys will then be named: Print, Super_L & Super_R in stead of F13, F14 & F15.

For a more complete text about binding keys to actions see this wiki article.

P.S.
What package is the import command part of? I don't seem to have it on my system.


  
 
 Post subject: Re: [HOW TO] Enabling Print-Screen and Windows key
PostPosted: Mon Dec 04, 2006 1:18 pm 
Regular Zenwalker
Regular Zenwalker
User avatar

Joined: Fri Mar 10, 2006 2:19 pm
Posts: 59
Location: Hyderabad, India
michael wrote:
Is there a command-line tool to convert the xwd file into something more usable like jpeg or png?  I can open a screen dump with the GIMP, but I can use the GIMP to take screenshots w/o using xwd.


I don't have any idea about a command line tool which can convert a dump file to image formats. :(

This is just for taking an instant screenshot.  If one wants to convert to an image format, one has to use gimp or other tool. :(

_________________
Image


 Profile Send private message  
 
 Post subject: Re: [HOW TO] Enabling Print-Screen and Windows key
PostPosted: Mon Dec 04, 2006 1:28 pm 
Regular Zenwalker
Regular Zenwalker
User avatar

Joined: Fri Mar 10, 2006 2:19 pm
Posts: 59
Location: Hyderabad, India
Tibors wrote:
If you have two windows keys, then you most likely have a PC-105 keyboard (or one of its derivatives). If you set the "XkbModel" in your '/etc/X11/xorg.conf' to "pc105", then you can probably leave all the xmodmap stuff out of the How-To. Your keys will then be named: Print, Super_L & Super_R in stead of F13, F14 & F15.


My keyboard is PC-104 type. And just try it and you will find that Print, Super_L & Super_R do not work.  Super_L & Super_R have to be used with some other key to get activated.

I tried using them before using xmodmap and failed.  So had to change their keysyms.

Quote:
For a more complete text about binding keys to actions see this wiki article.


Thank you for the link. :)

Quote:
P.S.
What package is the import command part of? I don't seem to have it on my system.


import command is a part of ImageMagick package.:)

_________________
Image


 Profile Send private message  
 
 Post subject: Re: [HOW TO] Enabling Print-Screen and Windows key
PostPosted: Fri Dec 22, 2006 8:19 am 
Regular Zenwalker
Regular Zenwalker
User avatar

Joined: Mon Dec 18, 2006 8:43 am
Posts: 12
Location: San Diego, CA
Quick questions... Is there a way I can make Print Screen copy the screen to the "clip board?" So as to use "paste" to retrieve it? And im having the same problem with Super_L and Super_R as Neo. Is there a file that I can edit instead of using the keyboard Preferences GUI?

Edit: I found the text file I was looking for. Its in ~/.config/xfce4/shortcuts/Zenwalk.xml in case anyone was interested. You can edit that file and make JUST Super_L, by it's self, do the command. (Super_R also)

_________________
Ummm... check out my band?


Last edited by BMKid on Fri Dec 22, 2006 8:31 am, edited 1 time in total.

 Profile Send private message  
 
 Post subject: Re: [HOW TO] Enabling Print-Screen and Windows key
PostPosted: Fri Dec 22, 2006 9:46 am 
Experienced Zenwalker
Experienced Zenwalker
User avatar

Joined: Sat Apr 08, 2006 9:59 am
Posts: 122
"import" is part of ImageMagick if my memory servers me right...

_________________
[ s . n . a . f . u ]
Proud ThinkZen member #11!


 Profile Send private message  
 
 Post subject: Re: [HOW TO] Enabling Print-Screen and Windows key
PostPosted: Mon Jun 04, 2007 7:36 am 
Regular Zenwalker
Regular Zenwalker

Joined: Sat Mar 10, 2007 6:48 pm
Posts: 97
nice stuff.

btw: i redirected the wiki page Tibors mentioned to the new page as the old one was no longer there...


 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


 Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: