1
1
Fork 0

keyd: add mouse button macro

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2025-01-01 14:28:07 -06:00
parent 7614f59217
commit f3b9399b11
Signed by: Myned
GPG key ID: C7224454F7881A34

View file

@ -16,6 +16,7 @@ in {
enable = true;
#!! Binds use qwerty without layouts
# https://github.com/rvaiya/keyd/blob/master/docs/keyd.scdoc
#?? keyd monitor
keyboards.default.settings = {
#// global.disable_modifier_guard = 1; # Disable extraneous Control injection
@ -23,6 +24,13 @@ in {
control.esc = "toggle(qwerty)"; # Control+Esc toggles qwerty
shift.shift = "capslock"; # Both Shifts toggle Capslock
meta = {
# Mouse repeat macro
"," = "macro2(300, 100, leftmouse)";
"." = "macro2(300, 100, rightmouse)";
"/" = "macro2(300, 100, middlemouse)";
};
# Emulate function keys
function = {
space = "playpause";