So I have xmonad running remotely. All is good and I'm using the Win key instead of Alt. The problem is, when I want to resize an xmonad window with Alt+L, this locks the screen in my Windows desktop. How can I rebind Alt+L to something like Alt+Shift+H?
Asked
Active
Viewed 198 times
1 Answers
1
You can see the source code for the default mappings here. To rebind the Alt+L key to Alt+Shift+H you can use the additionalKeys
function to add new key bindings to your config:
import XMonad.Util.EZConfig
main = xmonad $ defaultConfig {
...
} `additionalKeys` [
((shiftMask .|. mod1Mask, xK_h), sendMessage Expand)
]

jesterjunk
- 2,342
- 22
- 18

fimad
- 346
- 2
- 7
-
emacs tells me `additionalKeys` is not in scope. Sorry, I don't speak Haskell yet. How can I correct this? – dmvianna May 03 '15 at 23:14
-
Ah, sorry, you need to import the `XMonad.Util.EZConfig` module to get access to that function. – fimad May 03 '15 at 23:18
-
couldn't match type XConfig l0 -> KeyMask ... probable cause: modMask is applied to too few arguments – dmvianna May 03 '15 at 23:43
-
Updated the snippet, it should be mod1Mask for the alt key. – fimad May 04 '15 at 00:30
-
Awesome. I changed it to **mod4Mask** to make it **`Win`+`Shift`+`H`**. Thanks! – dmvianna May 04 '15 at 00:42