"Empty" KeyMask: 0 vs AnyModifier vs ...?

Hi all, I'm trying to set up keybindings in Config.hs which require no modifier at all. eg, to launch a terminal when I hit F2. The following works: , ((0, xK_F2 ), spawn "urxvt") but doesn't feel "right". Is there a better candidate for the KeyMask field? I thought anyModifier might be right (something Anselm once said seemed to support that: http://www.suckless.org/pipermail/dwm/2006-October/001078.html ) but no, it doesn't. Any thoughts? Thanks, -Andy -- Andy Gimblett Computer Science Department University of Wales Swansea http://www.cs.swan.ac.uk/~csandy/

Andy Gimblett wrote:
The following works: , ((0, xK_F2 ), spawn "urxvt") but doesn't feel "right". Is there a better candidate for the KeyMask
I think "none" is the magic word here, but I'm not sure: , ((none, xK_F2), spawn "urxvt") (none is defined in X11-extras, so you may have to import something special, I haven't really tested this.) g'luck! ~d

On Fri, Apr 27, 2007 at 03:08:01AM -0700, Daniel Wagner wrote:
I think "none" is the magic word here, but I'm not sure: , ((none, xK_F2), spawn "urxvt") (none is defined in X11-extras, so you may have to import something special, I haven't really tested this.)
Yep - that's absolutely right, and works as advertised, given: import Graphics.X11.Xlib.Extras (none) Thanks, Daniel! -Andy -- Andy Gimblett Computer Science Department University of Wales Swansea http://www.cs.swan.ac.uk/~csandy/
participants (2)
-
Andy Gimblett
-
Daniel Wagner