From d4997929fb60bc7508c3a95e00aa463921ff3edf Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Sun, 22 Jun 2025 14:27:59 +0200 Subject: [PATCH] repeat delay and media keys --- modules/home/hyprland.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/modules/home/hyprland.nix b/modules/home/hyprland.nix index 461ba89..182e42b 100644 --- a/modules/home/hyprland.nix +++ b/modules/home/hyprland.nix @@ -24,6 +24,9 @@ in { follow_mouse = 1; sensitivity = 0; + + repeat_delay = 200; + repeat_rate = 30; }; "$mod" = "SUPER"; "$terminal" = "ghostty"; @@ -120,6 +123,22 @@ in { "$mod, mouse:272, movewindow" "$mod, mouse:273, resizewindow" ]; + + # l -> do stuff even when locked + # e -> repeats when key is held + bindle = [ + ", XF86AudioRaiseVolume, exec, vol --up" + ", XF86AudioLowerVolume, exec, vol --down" + ", XF86MonBrightnessUp, exec, bri --up" + ", XF86MonBrightnessDown, exec, bri --down" + ", XF86Search, exec, launchpad" + ]; + bindl = [ + ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" + ", XF86AudioPlay, exec, playerctl play-pause" # the stupid key is called play , but it toggles + ", XF86AudioNext, exec, playerctl next" + ", XF86AudioPrev, exec, playerctl previous" + ]; }; }; }