keyd properly setup now

This commit is contained in:
Patrick Menking 2024-09-17 20:40:25 -04:00
parent 298e59707e
commit 21f6b9f7ae
3 changed files with 23 additions and 50 deletions

View file

@ -55,31 +55,31 @@
# Configure pulseaudio
hardware.pulseaudio.enable = lib.mkDefault true;
services.pipewire.enable = false;
services.keyd = {
enable = true;
keyboards.default = {
ids = [ "*" ];
settings = {
main = {
capslock = "layer(l2)";
};
l2 = {
w = "up";
a = "left";
s = "down";
d = "right";
services.keyd = {
enable = true;
keyboards.default = {
ids = [ "*" ];
settings = {
main = {
capslock = "layer(l2)";
};
l2 = {
w = "up";
a = "left";
s = "down";
d = "right";
b = "C-b";
b = "C-b";
space = "playpause";
"." = "nextsong";
"," = "prevsong";
space = "playpause";
"." = "nextsong";
"," = "prevsong";
escape = "~";
home = "end";
};
};
};
}:
escape = "~";
home = "end";
};
};
};
}:
};
}

View file

@ -5,7 +5,6 @@
homeDirectory = "/home/crow";
stateVersion = "24.05";
file.".config/hypr/hyprland.conf".source = ./hyprland.conf;
file."/etc/keyd/default.conf".source = ./keyd.conf;
};
xdg = {

View file

@ -1,26 +0,0 @@
[ids]
*
[main]
capslock = layer(l2)
[l2]
w = up
s = down
a = left
d = right
b = C-b
space = playpause
. = nextsong
, = previoussong
[ = delete
] = end
escape = ~
home = end