kmonad config for rotterdam

This commit is contained in:
William 2023-08-17 18:48:22 -03:00
parent acc76a6cb5
commit 3016f96341
3 changed files with 40 additions and 2 deletions

View file

@ -68,6 +68,7 @@
modules = [
./hosts/desktops/rotterdam.nix
agenix.nixosModules.default
kmonad.nixosMofules.default
{
nixpkgs.overlays =
[ baduhai-nur.overlay agenix.overlays.default ];
@ -82,7 +83,6 @@
./hosts/desktops/io.nix
agenix.nixosModules.default
kmonad.nixosModules.default
home-manager.nixosModules.default
{
nixpkgs.overlays =
[ baduhai-nur.overlay agenix.overlays.default ];

View file

@ -12,7 +12,16 @@
networking.hostName = "rotterdam";
services.hardware.openrgb.enable = true;
services = {
hardware.openrgb.enable = true;
kmonad = {
enable = true;
keyboards.default = {
device = "/dev/input/by-path/pci-0000:0a:00.3-usb-0:2:1.0-event-kbd";
config = builtins.readFile ./rotterdam/kmonad.kbd;
};
};
};
systemd.targets.hibernate.enable = false; # disable non-functional hibernate

View file

@ -0,0 +1,29 @@
(defcfg
input (device-file "/dev/input/by-path/pci-0000:0a:00.3-usb-0:2:1.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
cps (tap-hold 200 esc caps)
)
(defsrc
esc 1 2 3 4 5 6 7 8 9 10 - = 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 , . / del up rsft
lctl lmet lalt spc ralt left down rght
)
(defsrc
esc 1 2 3 4 5 6 7 8 9 10 - = bspc
tab q w e r t y u i o p [ ] \
@cps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / del up rsft
lctl lmet lalt spc ralt left down rght
)