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 Thu 24 Apr 2014, 17:36
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
keyboard shortcut for jwm showdesktop [solved]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
xophist


Joined: 10 Dec 2012
Posts: 26
Location: Coastal Texas

PostPosted: Tue 18 Dec 2012, 02:49    Post subject:  keyboard shortcut for jwm showdesktop [solved]  

.jwm-tray has this:

<TrayButton popup="Show Desktop" icon="mini-desktop.xpm">showdesktop</TrayButton>

This allows you to minimize all windows and showdesktop by clicking the icon.

Apparently, showdesktop is not a command.

I'd like to do this without needing the mouse. Is there a command for this?

If so, it could be bound to a key combo in .jwmrc like this:

<Key mask="A" key="Super_L">exec:showdesktop_cmd</Key>

where showdesktop_cmd is what I'm looking for.

Last edited by xophist on Fri 21 Dec 2012, 01:37; edited 2 times in total
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 854

PostPosted: Tue 18 Dec 2012, 13:00    Post subject:  

xophist,

You are almost there!

As you have noted, showdesktop is not a regular command that can be run on the command line. It is a JWM "action".

exec: is another JWM "action" used for running regular commands, but not other JWM actions.

So you want to eliminate the exec: and just use showdesktop, like this:
Code:
<Key mask="A" key="Super_L">showdesktop</Key>

At least that works on JWM version svn-505, which came with Racy 5.2.2.

Good luck.
Back to top
View user's profile Send private message 
xophist


Joined: 10 Dec 2012
Posts: 26
Location: Coastal Texas

PostPosted: Tue 18 Dec 2012, 15:00    Post subject:  

npierce wrote:

Code:
<Key mask="A" key="Super_L">showdesktop</Key>



npierce, that worked!

Your explanation was helpful.

Thank you!
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 854

PostPosted: Mon 24 Dec 2012, 09:58    Post subject:  

You're welcome.

And (a bit belatedly), welcome to the forum!
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2173

PostPosted: Mon 24 Dec 2012, 10:14    Post subject:  

wmctrl can be used from CLI to minimize all windows.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0481s ][ Queries: 12 (0.0076s) ][ GZIP on ]