From 91e9e5d2e362638b8fecb9b6e92c086abaed65d7 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 7 Sep 2019 08:24:52 +0000 Subject: [PATCH] Use Muhenkan as xmonad mod key --- desktop.nix | 2 ++ etc/xmonad.hs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop.nix b/desktop.nix index 8d40eb8..a2d6689 100644 --- a/desktop.nix +++ b/desktop.nix @@ -86,6 +86,8 @@ in { keyboard:usb:* evdev:input:* 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 = { diff --git a/etc/xmonad.hs b/etc/xmonad.hs index c2e57bf..d77f5b6 100644 --- a/etc/xmonad.hs +++ b/etc/xmonad.hs @@ -9,7 +9,7 @@ import qualified XMonad.StackSet as W main = xmonad $ def { terminal = "kitty" , borderWidth = 0 - , modMask = mod4Mask + , modMask = mod3Mask , startupHook = startup , manageHook = windowManage , workspaces = [ "1:emacs", "2:web", "3", "4", "5", "6", "7", "8", "9" ] @@ -18,6 +18,7 @@ main = xmonad $ def startup = do setWMName "LG3D" spawn "xrandr --auto && xrandr --output DP-1.3 --above DP-2" + spawn "xmodmap -e 'add mod3 = Muhenkan'" windowManage = composeAll [ className =? "Emacs" --> doShift "1:emacs"