49 lines
1.8 KiB
Text
49 lines
1.8 KiB
Text
|
|
(defcfg
|
|
;; For Linux
|
|
input (device-file "/dev/input/by-id/usb-Metadot_-_Das_Keyboard_Das_Keyboard-event-kbd")
|
|
output (uinput-sink "My KMonad output"
|
|
;; 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
|
|
|
|
;; 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
|
|
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 z x c v b n m , . / rsft
|
|
lctl lmet lalt spc ralt rmet cmp rctl
|
|
)
|
|
|
|
(defalias sym (layer-toggle symbols))
|
|
|
|
(deflayer qwerty
|
|
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
|
tab q w e r t y u i o p [ ] \
|
|
esc a s d f g h j k l ; ' ret
|
|
lsft z x c v b n m , . / rsft
|
|
lctl lmet lalt spc @sym rmet cmp rctrl
|
|
)
|
|
|
|
;; sz
|
|
;; cent
|
|
;; tm
|
|
;; ^2 ^3 ...
|
|
(deflayer symbols
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
_ _ _ € _ _ _ ü _ ö _ _ _ _
|
|
caps ä _ _ _ _ _ _ _ _ _ _ _
|
|
_ _ _ _ _ _ _ _ _ _ _ _
|
|
_ _ _ _ _ _ _ _)
|
|
|
|
|
|
|