Add a print screen button functionality through .jwmrc

What features/apps/bugfixes needed in a future Puppy
Post Reply
Message
Author
User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

Add a print screen button functionality through .jwmrc

#1 Post by lior2b »

This is very easy to accomplish and can supply an answer to a frequently asked question. The "Print Screen" button on the keyboard isn't being used by Puppy. By adding this entry to the .jwmrc file we can use it to capture a screenshot.

Code: Select all

<Key key="Print">exec:mtpaintsnapshot.sh</Key>
My suggestion is to add the above entry to .jwmrc and to take the following entry out of the menu:

Code: Select all

<Program label="mtPaint-snapshot screen capture" icon="mini-camera.xpm">exec mtpaintsnapshot.sh</Program> 
[color=#4682B4]Lior Tubi[/color]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

I like it the way it is because, once you find that you use mtPaint for screenshots, it's easy to figure out and control what happens when you take a screen shot. You can easily find and change where the screen shot is put, and then you can crop and resize the screen shot, all using mtPaint. I've never used the print screen button in Windows because it doesn't seem to do anything, or rather whatever it does is hidden, and I wouldn't know what to expect of the "print" button in Puppy.

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

Cool

#3 Post by raffy »

Cool and essential (for people used to it :) ). Another essential is the use of the Win___s key - Mandrake is already using it.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#4 Post by BarryK »

Thanks Lior, I've added that line to .jwmrc, and leaving in both ways of doing it.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#5 Post by Flash »

Is it possible to bind any key on the keyboard to an executable in Puppy (I hope I'm using the right terms.) For instance, I have volume up and down, mute, fast forward and back, and many other hotkeys on my keyboard that do nothing in Puppy. Is there any way to see what the keyboard is sending to Puppy when I push these keys?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#6 Post by MU »

yes, run "xev" in a console which is part of puppy since 107 or 108.

Move the mouse over the xev-window, then hit the keys.
this will tell you something like

KeyPress event, serial 28, synthetic NO, window 0x3400001,
root 0x41, subw 0x3400002, time 66703015, (45,54), root:(47,453),
state 0x0, keycode 46 (keysym 0x6c, l), same_screen YES,

Important is "keycode 46"
Some Desktops or additional programs allow to bind actions to these keycodes.

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#7 Post by MU »


Post Reply