From da8c77c2077bc6247ba0f96441f797aff74f01c6 Mon Sep 17 00:00:00 2001 From: Odweta Date: Sun, 11 Jan 2026 20:32:55 +0100 Subject: [PATCH] xf86 keys --- hyprland.nix | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/hyprland.nix b/hyprland.nix index be71f34..306436e 100644 --- a/hyprland.nix +++ b/hyprland.nix @@ -96,12 +96,32 @@ "$mod SHIFT, 3, movetoworkspace, 3" "$mod SHIFT, 4, movetoworkspace, 4" - ", XF86MonBrightnessUp, exec, light -A 10" - ", XF86MonBrightnessDown, exec, light -U 10" + { + key = "XF86MonBrightnessUp"; + mods = ""; + command = "light -A 10"; + } + { + key = "XF86MonBrightnessDown"; + mods = ""; + command = "light -U 10"; + } - ", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ +5%" - ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ -5%" - ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle" + { + key = "XF86AudioRaiseVolume"; + mods = ""; + command = "wpctl set-volume @DEFAULT_SINK@ 5%+"; + } + { + key = "XF86AudioLowerVolume"; + mods = ""; + command = "wpctl set-volume @DEFAULT_SINK@ 5%-"; + } + { + key = "XF86AudioMute"; + mods = ""; + command = "wpctl set-mute @DEFAULT_SINK@ toggle"; + } ]; }; };