[xmonad] additionalKeys: do two tasks?

Aleksandr Miroslav alexmiroslav at gmail.com
Mon Aug 26 23:21:52 CEST 2013


hello,

I have this in my xmonad rc:

`additionalKeys` [ ((mod4Mask, xK_z), spawn
"/usr/local/bin/xscreensaver-command -lock") ]


that locks the screen with my meta-z and works fine.

But I now want to switch to workspace 1 before I lock the screen, no matter
what workspace I am in.

How can I get additionalKeys to do this compount command?

thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20130826/5dc1f7df/attachment.htm>


More information about the xmonad mailing list