Next Previous Contents

4. Examples

As you most probably don't understand at all what all these window properties are about, some examples will probably help : In every examples also at first press 'New action', select some Action name and at last press 'Change hotkeys' and assign a hotkeys combination to your action.

4.1 HOWTO do it the simplest way

Pick 'Command to execute'/'URL to execute' and enter the command, then press 'Autodetect'. Pick the right window. If e.g. the title is not always the same, set it back to 'not significant'. Press 'Ok' and the configuration is done.

4.2 Run 'rm -f ~/trash' every time 'CTRL+ALT+T' is pressed

Command to execute               : rm -f ~/trash

4.3 Open/switch to a kfm window in home directory every time 'CTRL+ALT+H' is pressed

URL to execute                   : '<your_home_dir>'
Don't run if window title exists : file:/<your_home_dir>
Don't run if window class exists : kfm kfm
Also select 'Search for last active matching window'.

4.4 Assign 'CTRL+SHIFT+E' to Netscape

Command to execute               : netscape
Don't run if window class exists : ^.* Netscape
( Note the class is '^.* Netscape', since the class differs for different Netscape windows ).
Also select 'Search for last active matching window'.

4.5 A hotkey for maximizing a window

For some reason I can't find a shortcut for maximizing a window in the standard KWM global shortcuts, although there is a IMHO not so useful shortcut for minimizing a window. Hmm, no problem :

Command to execute               : kwmcom winMaximize


Next Previous Contents