Keyd : Add macros.

This commit is contained in:
Dmitry Voronin 2024-04-24 04:22:34 +03:00
parent e4cbc297fd
commit d30a0d26ae
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,4 +1,5 @@
{ ... }: {
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [ keyd ];
services.keyd = {
enable = true;
keyboards.default = {
@ -11,11 +12,51 @@
rightalt = "layer(rightalt)";
rightcontrol = "layer(rightcontrol)";
rightshift = "layer(rightshift)";
leftcontrol = "layer(leftcontrol)";
};
# Alternative keys.
leftcontrol = {
w = "pageup";
a = "home";
s = "pagedown";
d = "end";
x = "cut";
c = "copy";
v = "paste";
h = "left";
j = "down";
k = "up";
l = "right";
};
# ???
rightalt = {};
# Media/hw controls ?
rightcontrol = {};
# ???
rightshift = {};
compose = {};
# Macros.
compose = {
w = "macro(enter 10ms r enter)";
a = "macro(enter 10ms N o enter)";
s = "macro(enter 10ms W a i t enter)";
d = "macro(enter 10ms Y e s enter)";
q = "macro(enter 10ms S o r r y ! enter)";
e = "macro(enter 10ms T h a n k s ! enter)";
g = "macro(enter 10ms g g enter)";
z = "macro(enter 10ms < space L e f t enter)";
x = "macro(enter 10ms > space H e r e space < enter)";
c = "macro(enter 10ms > space R i g h t enter)";
r = "macro(enter 10ms N e e d space m o r e space a m m o enter)";
t = "macro(enter 10ms M a y space I space t a k e space e x t r a ? enter)";
f = "macro(enter 10ms A F K enter)";
v = "macro(enter 10ms I space n e e d space h e l p ! enter)";
b = "macro(enter 10ms I ' m space b a c k enter)";
};
};
};
};