commit 9402e908e25d9078ff83a14402980069e63b6e42 Author: Oscar Pocock Date: Sun Oct 2 22:21:16 2022 +0100 Added framework laptop layout diff --git a/framework.kbd b/framework.kbd new file mode 100644 index 0000000..54979ab --- /dev/null +++ b/framework.kbd @@ -0,0 +1,60 @@ +(defcfg + ;; For Linux + input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd") + output (uinput-sink "Framework KMonad" + ;; To understand the importance of the following line, see the section on + ;; Compose-key sequences at the near-bottom of this file. + "/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap -option compose:ralt") + cmp-seq ralt ;; Set the compose key to `RightAlt' + cmp-seq-delay 5 ;; 5ms delay between each compose-key sequence press + + ;; For Windows + ;; input (low-level-hook) + ;; output (send-event-sink) + + ;; For MacOS + ;; input (iokit-name "my-keyboard-product-string") + ;; output (kext) + + ;; Comment this if you want unhandled events not to be emitted + fallthrough true + + ;; Set this to false to disable any command-execution in KMonad + allow-cmd true +) + +(defsrc + esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del + grv 1 2 3 4 5 6 7 8 9 0 - = bspc + tab q w e r t y u i o p [ ] + caps a s d f g h j k l ; ' \ ret + lsft 102d z x c v b n m , . / rsft + up + lctl lmet lalt spc ralt rctl left down rght +) + +(deflayer layer0 + esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del + grv 1 2 3 4 5 6 7 8 9 0 - = bspc + tab q w e r t y u i o p [ ] + @capstofn a s d f g h j k l ; ' \ ret + lsft 102d z x c v b n m , . / rsft + up + lctl lmet lalt spc ralt rctl left down rght +) + + +(deflayer layer1 + esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del + grv 1 2 3 4 5 6 7 8 9 0 - = bspc + tab q w e r t y u i o p [ ] + caps a s d f g h j k l ; ' \ ret + lsft 102d z x c v b n m , . / rsft + up + lctl lmet lalt spc ralt rctl prev pp next +) + +(defalias + layer1 (layer-toggle layer1) + capstofn (tap-next-release caps @layer1) +) \ No newline at end of file diff --git a/kmonad.service b/kmonad.service new file mode 100644 index 0000000..24997a9 --- /dev/null +++ b/kmonad.service @@ -0,0 +1,12 @@ +[Unit] +Description=kmonad keyboard config + +[Service] +Restart=always +RestartSec=3 +ExecStart=/usr/bin/kmonad %E/kmonad/config.kbd +Nice=-20 + +[Install] +WantedBy=default.target +