Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 28 Aug 2015, 22:59
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Add a print screen button functionality through .jwmrc
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
lior2b


Joined: 04 Feb 2006
Posts: 97
Location: The Holy Land

PostPosted: Sat 18 Mar 2006, 16:42    Post subject:  Add a print screen button functionality through .jwmrc  

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:
<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:
<Program label="mtPaint-snapshot screen capture" icon="mini-camera.xpm">exec mtpaintsnapshot.sh</Program>

_________________
Lior Tubi
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11522
Location: Arizona USA

PostPosted: Sat 18 Mar 2006, 18:17    Post subject:  

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.
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4827
Location: Manila

PostPosted: Sat 18 Mar 2006, 18:50    Post subject: Cool  

Cool and essential (for people used to it Smile ). Another essential is the use of the Win___s key - Mandrake is already using it.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7450
Location: Perth, Western Australia

PostPosted: Sat 18 Mar 2006, 18:55    Post subject:  

Thanks Lior, I've added that line to .jwmrc, and leaving in both ways of doing it.
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11522
Location: Arizona USA

PostPosted: Sun 19 Mar 2006, 01:47    Post subject:  

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?
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Sun 19 Mar 2006, 02:32    Post subject:  

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
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Sun 19 Mar 2006, 03:47    Post subject:  

here is an easy grafical tool:
http://www.murga.org/~puppy/viewtopic.php?p=42590#42590
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
Jump to:  

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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0816s ][ Queries: 12 (0.0339s) ][ GZIP on ]