Dropped kmonad altogether

This commit is contained in:
William 2023-08-22 18:51:48 -03:00
parent d981b62ef8
commit a574092915
5 changed files with 49 additions and 95 deletions

View file

@ -35,12 +35,49 @@
write_stylus
];
services = {
kmonad = {
enable = true;
keyboards.internal = {
device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
config = builtins.readFile ./io/kmonad.kbd;
services.keyd = {
enable = true;
keyboards.main = {
ids = [ "0001:0001" ];
settings = {
main = {
meta = "overload(meta, esc)";
f1 = "back";
f2 = "forward";
f3 = "refresh";
f4 = "M-f11";
f5 = "M-w";
f6 = "brightnessdown";
f7 = "brightnessup";
f8 = "timeout(mute, 200, micmute)";
f9 = "play";
f10 = "timeout(nextsong, 200, previoussong)";
f13 = "delete";
"102nd" = "layer(function)";
};
shift = {
leftshift = "capslock";
rightshift = "capslock";
};
function = {
escape = "f1";
f1 = "f2";
f2 = "f3";
f3 = "f4";
f4 = "f5";
f5 = "f6";
f6 = "f7";
f7 = "f8";
f8 = "f9";
f9 = "f10";
f10 = "f11";
f13 = "f12";
u = "sysrq";
k = "home";
l = "pageup";
"," = "end";
"." = "pagedown";
};
};
};
};

View file

@ -1,54 +0,0 @@
(defcfg
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
output (uinput-sink "KMonad Virtal Keyboard"
"/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap -option compose:ralt")
cmp-seq ralt
cmp-seq-delay 5
fallthrough true
allow-cmd false
)
(defalias
ovrvw M-w #|Overview button|#
fsc (multi-tap 150 M-pgup M-f11)
cps (tap-hold 400 esc caps) #|Caps lock replacement|#
medkey (multi-tap 200 KeyNextSong KeyPreviousSong) #|Play-pause key|#
mute (multi-tap 200 KeyMute M-KeyMute) #|Mute audio and mic|#
#|Handling function key|#
fk (layer-toggle fkeys)
fkk (layer-switch fkeys)
fks (multi-tap 200 @fk @fkk)
fkout (layer-switch default)
fko (multi-tap 200 @fk @fkout)
)
(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f13
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] ret
lmet a s d f g h j k l ; ' \
lsft 102d z x c v b n m , . / rsft
lctl lalt spc ralt rctl up
left down rght
)
(deflayer default
esc KeyBack KeyForward KeyRefresh @fsc @ovrvw brdn brup @mute pp @medkey del
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] ret
@cps a s d f g h j k l ; ' \
lsft @fks z x c v b n m , . / rsft
lctl lalt spc ralt rctl up
left down rght
)
(deflayer fkeys
f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
_ _ _ _ _ _ _ _ _ kp/ kp* kp- KeyHome _
_ prnt _ _ _ _ _ _ 7 8 9 kp+ pgup _
_ _ _ _ _ _ _ _ 4 5 6 kprt pgdn
_ @fko _ _ _ _ _ _ _ 1 2 3 KeyEnd
_ _ _ 0 . _
_ _ _
)

View file

@ -17,6 +17,7 @@
keyd = {
enable = true;
keyboards.main = {
ids = [ "1ea7:0907" ];
settings = {
main = { capslock = "overload(meta, esc)"; };
shift = {
@ -24,7 +25,6 @@
rightshift = "capslock";
};
};
ids = [ "1ea7:0907" ];
};
};
};