From 289d8fd798a8a42c91a29c74237979945921fe36 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 17 Mar 2025 10:48:05 +0800 Subject: [PATCH] feat(hyprland): add media keyboard keys --- users/modules/programs/hyprland.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/users/modules/programs/hyprland.nix b/users/modules/programs/hyprland.nix index eede60c..b8416b5 100644 --- a/users/modules/programs/hyprland.nix +++ b/users/modules/programs/hyprland.nix @@ -1,8 +1,4 @@ { - config, - lib, - ... -}: { home.sessionVariables.NIXOS_OZONE_WL = "1"; wayland.windowManager.hyprland = { enable = true; @@ -84,6 +80,13 @@ "$mainMod, V, togglefloating" ]; + # Repeat when held + binde = [ + # Keyboard Media Keys + ", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+" + ", XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-" + ]; + bindm = [ "ALT, mouse:272, movewindow" ];