commit ca9c2e12f2ad755eda916460edb2e445e1d931d4
parent e76e41400091208943790a156fb5a8b0eb0995d8
Author: tongong <tongong@gmx.net>
Date: Fri, 29 Oct 2021 13:12:32 +0200
added kmonad config
Diffstat:
4 files changed, 29 insertions(+), 3 deletions(-)
diff --git a/config/kmonad/config.kbd b/config/kmonad/config.kbd
@@ -0,0 +1,16 @@
+(defcfg
+ input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
+ output (uinput-sink "kmonad-output")
+
+ fallthrough true
+ allow-cmd false
+)
+
+(defsrc
+ caps
+ ' ;; รค on the german keyboard
+)
+(deflayer base
+ (tap-hold-next 300 esc lctl)
+ (tap-hold-next 300 ' lmet)
+)
diff --git a/config/systemd/user/kmonad.service b/config/systemd/user/kmonad.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=kmonad keyboard config
+
+[Service]
+Restart=always
+RestartSec=3
+ExecStart=/usr/bin/kmonad %E/kmonad/config.kbd
+Nice=-20
+
+[Install]
+WantedBy=default.target
diff --git a/dwm/autostart.sh b/dwm/autostart.sh
@@ -33,8 +33,7 @@ else
# set keyboard layout (required for xdotool to work properly)
# xdotool still struggles with "`" character...
- # also remap caps lock to escape key
- setxkbmap de -option caps:escape
+ setxkbmap de
# disable touchscreen
xinput disable 9
fi
diff --git a/xinitrc b/xinitrc
@@ -3,7 +3,7 @@
# keyboard layout
# this line is also in dwm/autostart.sh; maybe delete one of them?
-setxkbmap de -option caps:escape
+setxkbmap de
# load Xresources file
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources