Search code examples
xmonad

Bind a single key in xmonad without using a ModMask


I would like to bind single key presses to certain actions in my xmonad.hs.

I'm setting up a security system and will have each workspace on xmonad running a camera view. I want to bind single keys, such as left or right, to the switching of the workspaces instead of requiring to also press a modmask along with the key.

Is this possible?


Solution

  • Found my answer,

    Put a zero in place of the modkey: Instead of this: ((modm ,xK_a), prevWS) This: ((0 ,xK_a), prevWS)