Keyd: Merge alternative/control layers.
This commit is contained in:
parent
21f7c23784
commit
c66cd8f406
|
@ -18,23 +18,19 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
# NOTE: Use `wev` to find key names.
|
# NOTE: Use `wev` to find key names.
|
||||||
main = {
|
main = {
|
||||||
# down = "micmute";
|
|
||||||
# right = "compose";
|
|
||||||
# up = "mute";
|
|
||||||
backspace = "delete"; # Delete key on backspace.
|
backspace = "delete"; # Delete key on backspace.
|
||||||
capslock = "overload(control, esc)"; # Ctrl/esc combo.
|
capslock = "overload(control, esc)"; # Ctrl/esc combo.
|
||||||
compose = "layer(layer_number)"; # Number input layer.
|
compose = "layer(layer_compose)";
|
||||||
delete = "backslash";
|
delete = "backslash";
|
||||||
esc = "timeout(grave, 150, print)"; # System controls.
|
esc = "timeout(grave, 150, print)"; # System controls.
|
||||||
left = "compose"; # Number input layer.
|
|
||||||
leftcontrol = "overload(layer_alternative, leftcontrol)"; # Alternative layer for home, end etc.
|
leftcontrol = "overload(layer_alternative, leftcontrol)"; # Alternative layer for home, end etc.
|
||||||
print = "compose";
|
rightcontrol = "layer(layer_number)"; # Media and other controls.
|
||||||
rightcontrol = "layer(layer_control)"; # Media and other controls.
|
|
||||||
rightshift = "backspace"; # Backspace.
|
rightshift = "backspace"; # Backspace.
|
||||||
};
|
};
|
||||||
|
|
||||||
# Alternative navigation.
|
# Alternative navigation.
|
||||||
layer_alternative = {
|
layer_alternative = {
|
||||||
|
# Fx keys.
|
||||||
"0" = "f10";
|
"0" = "f10";
|
||||||
"1" = "f1";
|
"1" = "f1";
|
||||||
"2" = "f2";
|
"2" = "f2";
|
||||||
|
@ -45,47 +41,43 @@ in
|
||||||
"7" = "f7";
|
"7" = "f7";
|
||||||
"8" = "f8";
|
"8" = "f8";
|
||||||
"9" = "f9";
|
"9" = "f9";
|
||||||
a = "home";
|
minus = "f11";
|
||||||
backspace = "backspace";
|
|
||||||
c = "copy";
|
|
||||||
capslock = "capslock";
|
|
||||||
compose = "compose";
|
|
||||||
d = "end";
|
|
||||||
delete = "delete";
|
|
||||||
down = "down";
|
|
||||||
equal = "f12";
|
equal = "f12";
|
||||||
esc = "esc";
|
|
||||||
|
# Legacy navigation.
|
||||||
|
a = "home";
|
||||||
|
d = "end";
|
||||||
|
p = "pageup";
|
||||||
|
n = "pagedown";
|
||||||
h = "left";
|
h = "left";
|
||||||
j = "down";
|
j = "down";
|
||||||
k = "up";
|
k = "up";
|
||||||
l = "right";
|
l = "right";
|
||||||
left = "left";
|
|
||||||
minus = "f11";
|
|
||||||
print = "print";
|
|
||||||
right = "right";
|
|
||||||
rightcontrol = "leftcontrol";
|
|
||||||
rightshift = "rightshift";
|
|
||||||
s = "pagedown";
|
|
||||||
up = "up";
|
|
||||||
v = "paste";
|
|
||||||
w = "pageup";
|
|
||||||
x = "cut";
|
|
||||||
z = "micmute";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Media controls.
|
# Media controls.
|
||||||
layer_control = {
|
|
||||||
a = "back";
|
|
||||||
c = "ejectcd";
|
|
||||||
d = "forward";
|
|
||||||
e = "nextsong";
|
|
||||||
q = "previoussong";
|
|
||||||
s = "volumedown";
|
s = "volumedown";
|
||||||
v = "micmute";
|
|
||||||
w = "volumeup";
|
w = "volumeup";
|
||||||
x = "stopcd";
|
q = "previoussong";
|
||||||
z = "mute";
|
e = "nextsong";
|
||||||
space = "playpause";
|
space = "playpause";
|
||||||
|
z = "micmute";
|
||||||
|
x = "stopcd";
|
||||||
|
c = "ejectcd"; # Toggle audio output.
|
||||||
|
v = "mute";
|
||||||
|
|
||||||
|
# Reset keys.
|
||||||
|
backspace = "backspace";
|
||||||
|
capslock = "capslock";
|
||||||
|
compose = "compose";
|
||||||
|
delete = "delete";
|
||||||
|
esc = "esc";
|
||||||
|
rightcontrol = "rightcontrol";
|
||||||
|
rightshift = "rightshift";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Vacant compose key layer.
|
||||||
|
layer_compose = {
|
||||||
|
a = "a";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Number inputs.
|
# Number inputs.
|
||||||
|
|
Loading…
Reference in a new issue