Skip to content

Instantly share code, notes, and snippets.

@fcoury
Created January 5, 2024 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcoury/b27ef9d3a5b7dca7ba315647485c5f23 to your computer and use it in GitHub Desktop.
Save fcoury/b27ef9d3a5b7dca7ba315647485c5f23 to your computer and use it in GitHub Desktop.
Kanata config for XPS 13 keyboard
(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 rctl
)
(deflayer qwerty
@gsc 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
@cap a s d f g h j k l ; ' ret
lsft z x c v b n m , . / @rfl
lctl lmet lalt spc ralt rmet rctl
)
(deflayer extended
@ugv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] lrld
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 rctl
)
(defalias
;; toggles the extended layer
rfl (layer-while-held extended)
;; tap for esc, hold for lctrl
cap (tap-hold 200 200 esc lctl)
;; ;; layer-switch for temporary layer-switch
;; ext (layer-while-held extended)
;; tilde (shift-grave)
tld S-grv
ugv (macro (unshift grv))
;; gesc
gsc (fork esc @tld (lsft))
)
;; (deflayer layers
;; _ @qwr - lrld _ _ _ _ _ _ _ _ _ _
;; _ _ _ _ _ _ _ _ _ _ _ _ _ _
;; _ _ _ _ _ _ _ _ _ _ _ _ _
;; _ _ _ _ _ _ _ _ _ _ _ _
;; _ _ _ _ _ _ _
;; )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment