From 4a062abfd4162a427aee946c56c477629f4cd398 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 21 Jan 2025 11:08:27 +0300 Subject: [PATCH] Keyd: Use timeouts for controls. --- config/Keyd.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/Keyd.nix b/config/Keyd.nix index 4a2fcc8..deebc91 100644 --- a/config/Keyd.nix +++ b/config/Keyd.nix @@ -20,7 +20,9 @@ in # NOTE: Use `wev` to find key names. main = { # down = "micmute"; + # leftcontrol = "overload(layer_alternative, micmute)"; # Alternative layer for home, end etc. # right = "compose"; + # rightcontrol = "overload(layer_control, mute)"; # Media and other controls. # up = "mute"; backspace = "delete"; # Delete key on backspace. capslock = "overload(control, esc)"; # Ctrl/esc combo. @@ -28,9 +30,9 @@ in delete = "backslash"; esc = "timeout(grave, ${toString timeout}, print)"; # System controls. left = "compose"; # Number input layer. - leftcontrol = "overload(layer_alternative, micmute)"; # Alternative layer for home, end etc. + leftcontrol = "timeout(micmute, ${toString timeout}, layer(layer_alternative))"; # Alternative layer for home, end etc. print = "compose"; - rightcontrol = "overload(layer_control, mute)"; # Media and other controls. + rightcontrol = "timeout(mute, ${toString timeout}, layer(layer_control))"; # Media and other controls. rightshift = "backspace"; # Backspace. };