0

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?

OB7DEV
  • 143
  • 1
  • 9

1 Answers1

0

Found my answer,

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

OB7DEV
  • 143
  • 1
  • 9
  • 2
    Possibly `noModMask :: KeyMask` from https://hackage.haskell.org/package/X11-1.9.1/docs/Graphics-X11-Types.html might also be suitable. – Chris Stryczynski Nov 05 '20 at 10:23