Copyright | (c) brandon s allbery kf8nh 2022 Roman Cheplyaka 2008 |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | brandon s allbery kf8ng <allbery.b@gmail.com> |
Stability | unstable |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Define key-bindings on per-layout basis.
Synopsis
- chooseActionByLayout :: (String -> X ()) -> X ()
- bindByLayout :: [(String, X ())] -> X ()
Usage
You can use this module with the following in your xmonad.hs
:
import XMonad.Actions.PerLayoutKeys
,((0, xK_F2), bindByLayout [("Tall", spawn "rxvt"), ("Mirror Tall", spawn "xeyes"), ("", spawn "xmessage hello")])
For detailed instructions on editing your key bindings, see the tutorial.