keyboard shortcut for jwm showdesktop [solved]

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
xophist
Posts: 26
Joined: Mon 10 Dec 2012, 17:00
Location: Coastal Texas

keyboard shortcut for jwm showdesktop [solved]

#1 Post by xophist »

.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, 05:37, edited 2 times in total.

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#2 Post by npierce »

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: Select all

<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.

User avatar
xophist
Posts: 26
Joined: Mon 10 Dec 2012, 17:00
Location: Coastal Texas

#3 Post by xophist »

npierce wrote:

Code: Select all

<Key mask="A" key="Super_L">showdesktop</Key>
npierce, that worked!

Your explanation was helpful.

Thank you!

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#4 Post by npierce »

You're welcome.

And (a bit belatedly), welcome to the forum!

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#5 Post by amigo »

wmctrl can be used from CLI to minimize all windows.

Post Reply