Created
November 23, 2022 06:51
-
-
Save ZeekoZhu/00428026ceaf96440e1b77c00ad779ec to your computer and use it in GitHub Desktop.
My kmonad config for HP EliteBook 845 G8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defcfg | |
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd") | |
;; To understand the importance of the following line, see the section on | |
;; Compose-key sequences at the near-bottom of this file. | |
output (uinput-sink "KMonad: HP EliteBook 845 G8" "/usr/bin/sleep 1 && /usr/bin/setxkbmap -option compose:ralt") | |
;; Set the compose key to `RightAlt' | |
cmp-seq ralt | |
;; 5ms delay between each compose-key sequence press | |
;; todo: not available now | |
;; cmp-seq-delay 5 | |
allow-cmd false | |
) | |
(defsrc | |
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 prnt ins del | |
` 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 rctrl left up down rght | |
home pgup pgdn end | |
) | |
(defalias | |
sq (tap-hold-next-release 200 q Q) | |
sw (tap-hold-next-release 200 w W) | |
se (tap-hold-next-release 200 e E) | |
sr (tap-hold-next-release 200 r R) | |
st (tap-hold-next-release 200 t T) | |
sy (tap-hold-next-release 200 y Y) | |
su (tap-hold-next-release 200 u U) | |
si (tap-hold-next-release 200 i I) | |
so (tap-hold-next-release 200 o O) | |
sp (tap-hold-next-release 200 p P) | |
sa (tap-hold-next-release 200 a A) | |
ss (tap-hold-next-release 200 s S) | |
sd (tap-hold-next-release 200 d D) | |
sf (tap-hold-next-release 200 f F) | |
sg (tap-hold-next-release 200 g G) | |
sh (tap-hold-next-release 200 h H) | |
sj (tap-hold-next-release 200 j J) | |
sk (tap-hold-next-release 200 k K) | |
sl (tap-hold-next-release 200 l L) | |
sz (tap-hold-next-release 200 z Z) | |
sx (tap-hold-next-release 200 x X) | |
sc (tap-hold-next-release 200 c C) | |
sv (tap-hold-next-release 200 v V) | |
sb (tap-hold-next-release 200 b B) | |
sn (tap-hold-next-release 200 n N) | |
sm (tap-hold-next-release 200 m M) | |
sgv (tap-hold-next-release 200 ` ~) | |
s1 (tap-hold-next-release 200 1 !) | |
s2 (tap-hold-next-release 200 2 @) | |
s3 (tap-hold-next-release 200 3 #) | |
s4 (tap-hold-next-release 200 4 $) | |
s5 (tap-hold-next-release 200 5 %) | |
s6 (tap-hold-next-release 200 6 ^) | |
s7 (tap-hold-next-release 200 7 &) | |
s8 (tap-hold-next-release 200 8 *) | |
s9 (tap-hold-next-release 200 9 \( ) | |
s0 (tap-hold-next-release 200 0 \) ) | |
smn (tap-hold-next-release 200 min \_) | |
seq (tap-hold-next-release 200 eql +) | |
s' (tap-hold-next-release 200 ' ") | |
s; (tap-hold-next-release 200 ; :) | |
s, (tap-hold-next-release 200 , <) | |
s. (tap-hold-next-release 200 . >) | |
s/ (tap-hold-next-release 200 / ?) | |
s\ (tap-hold-next-release 200 \ |) | |
s[ (tap-hold-next-release 200 [ {) | |
s] (tap-hold-next-release 200 ] }) | |
) | |
(defalias | |
arw2 #(= >) | |
sym (layer-toggle symbol) | |
ttsp (tap-hold-next-release 200 spc @sym) | |
qw1 (layer-switch qwerty) | |
qw2 (layer-switch qwerty2) | |
scl (layer-toggle shortcut) | |
sts (sticky-key 2000 lsft) | |
) | |
(deflayer qwerty2 | |
` f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 prnt ins del | |
esc @s1 @s2 @s3 @s4 @s5 @s6 @s7 @s8 @s9 @s0 @smn @seq bspc | |
tab q w e r t y u i o p @s[ @s] @s\ | |
lctrl a s d f g h j k l @s; @sts ret | |
lsft z x c v b n m @s, @s. @s/ rsft | |
caps lmet lalt @ttsp @scl rctrl left up down rght | |
home pgup pgdn end | |
) | |
(deflayer qwerty | |
` f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 prnt ins del | |
esc 1 2 3 4 5 6 7 8 9 0 - = bspc | |
tab q w e r t y u i o p [ ] \ | |
lctrl a s d f g h j k l ; ' ret | |
lsft z x c v b n m , . / rsft | |
caps lmet lalt @ttsp @scl rctrl left up down rght | |
home pgup pgdn end | |
) | |
(deflayer symbol | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
@qw1 ! @ # $ % ^ & * \( \) \_ + @qw2 | |
_ esc $ [ ] - + { } bspc @s\ _ _ _ | |
_ ` ~ _ @arw2 _ left down up right @s' _ _ | |
_ _ _ _ _ ret \_ = _ _ _ _ | |
_ _ _ _ _ _ _ _ _ _ | |
_ _ _ _ | |
) | |
(defalias | |
cae C-A-ret | |
csc C-S-c | |
csv C-S-v | |
cax C-A-x | |
cf C-f | |
wl M-left | |
wr M-right | |
ae A-ret | |
csr C-S-r | |
m1 M-1 | |
m2 M-2 | |
m3 M-3 | |
m4 M-4 | |
m5 M-5 | |
m6 M-6 | |
m7 M-7 | |
m8 M-8 | |
m9 M-9 | |
m0 M-0 | |
msl M-S-left | |
msr M-S-right | |
m| M-| | |
mf M-f | |
mj M-j | |
mk M-k | |
ms M-s | |
mm M-m | |
mt M-t | |
) | |
(deflayer shortcut | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_ @m1 @m2 @m3 @m4 @m5 @m6 @m7 @m8 @m9 @m0 @msl @msr _ | |
_ @mm @mt @cae @csr _ _ _ _ _ _ @mj @mk _ | |
_ @wl @ms @wr @ae _ _ _ _ _ @mf @m| _ | |
_ _ @cax @csc @csv _ _ _ _ _ _ _ | |
_ _ _ _ _ _ _ _ _ _ | |
_ _ _ _ | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment