Added framework laptop layout
This commit is contained in:
commit
9402e908e2
2 changed files with 72 additions and 0 deletions
60
framework.kbd
Normal file
60
framework.kbd
Normal file
|
@ -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)
|
||||
)
|
12
kmonad.service
Normal file
12
kmonad.service
Normal file
|
@ -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
|
||||
|
Loading…
Reference in a new issue