1
0

Use Muhenkan as xmonad mod key

This commit is contained in:
dump_stack() 2019-09-07 08:24:52 +00:00
parent 9e0fe2a23e
commit 91e9e5d2e3
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 4 additions and 1 deletions

View File

@ -86,6 +86,8 @@ in {
keyboard:usb:* keyboard:usb:*
evdev:input:* evdev:input:*
KEYBOARD_KEY_700E7=rightctrl # Super_R -> Control_R KEYBOARD_KEY_700E7=rightctrl # Super_R -> Control_R
KEYBOARD_KEY_7B=leftalt # Muhenkan -> Alt_R
KEYBOARD_KEY_38=muhenkan # Alt_R -> Muhenkan
''; '';
services.xserver.displayManager.lightdm = { services.xserver.displayManager.lightdm = {

View File

@ -9,7 +9,7 @@ import qualified XMonad.StackSet as W
main = xmonad $ def main = xmonad $ def
{ terminal = "kitty" { terminal = "kitty"
, borderWidth = 0 , borderWidth = 0
, modMask = mod4Mask , modMask = mod3Mask
, startupHook = startup , startupHook = startup
, manageHook = windowManage , manageHook = windowManage
, workspaces = [ "1:emacs", "2:web", "3", "4", "5", "6", "7", "8", "9" ] , workspaces = [ "1:emacs", "2:web", "3", "4", "5", "6", "7", "8", "9" ]
@ -18,6 +18,7 @@ main = xmonad $ def
startup = do startup = do
setWMName "LG3D" setWMName "LG3D"
spawn "xrandr --auto && xrandr --output DP-1.3 --above DP-2" spawn "xrandr --auto && xrandr --output DP-1.3 --above DP-2"
spawn "xmodmap -e 'add mod3 = Muhenkan'"
windowManage = composeAll windowManage = composeAll
[ className =? "Emacs" --> doShift "1:emacs" [ className =? "Emacs" --> doShift "1:emacs"