Keyd : Add media layer.

This commit is contained in:
Dmitry Voronin 2024-04-24 17:57:39 +03:00
parent 2d856c2463
commit 4bb39a8bd8
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -7,16 +7,15 @@
settings = { settings = {
main = { main = {
capslock = "overload(control, esc)"; capslock = "overload(control, esc)";
compose = "layer(compose)"; compose = "layer(layer_macro)";
esc = "capslock"; esc = "capslock";
rightalt = "layer(rightalt)"; rightalt = "layer(layer_rightalt)";
rightcontrol = "layer(rightcontrol)"; rightcontrol = "layer(layer_control)";
rightshift = "layer(rightshift)"; rightshift = "layer(layer_rightshift)";
leftcontrol = "layer(leftcontrol)"; leftcontrol = "overload(layer_alternative, leftcontrol)";
}; };
# Alternative keys. layer_alternative = {
leftcontrol = {
w = "pageup"; w = "pageup";
a = "home"; a = "home";
s = "pagedown"; s = "pagedown";
@ -30,17 +29,15 @@
l = "right"; l = "right";
}; };
# ??? layer_control = {
rightalt = {}; space = "playpause";
w = "volumeup";
s = "volumedown";
d = "nextsong";
a = "previoussong";
};
# Media/hw controls ? layer_macro = {
rightcontrol = {};
# ???
rightshift = {};
# Macros.
compose = {
w = "macro(enter 10ms r enter)"; w = "macro(enter 10ms r enter)";
a = "macro(enter 10ms N o enter)"; a = "macro(enter 10ms N o enter)";
s = "macro(enter 10ms W a i t enter)"; s = "macro(enter 10ms W a i t enter)";
@ -57,6 +54,10 @@
v = "macro(enter 10ms I space n e e d space h e l p ! 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)"; b = "macro(enter 10ms I ' m space b a c k enter)";
}; };
# Vacant layers.
layer_rightalt = {};
layer_rightshift = {};
}; };
}; };
}; };