From f20dc6256b36fdd074e896170c7b2925e2bc8916 Mon Sep 17 00:00:00 2001 From: Odweta Date: Sun, 11 Jan 2026 20:40:12 +0100 Subject: [PATCH] xf86 keys --- hyprland.nix | 69 ++++++---------------------------------------------- 1 file changed, 7 insertions(+), 62 deletions(-) diff --git a/hyprland.nix b/hyprland.nix index 32491f3..bb7806e 100644 --- a/hyprland.nix +++ b/hyprland.nix @@ -72,7 +72,7 @@ "$term" = "${pkgs.kitty}/bin/kitty"; "$menu" = "${pkgs.wofi}/bin/wofi --show run"; "$lock" = "${pkgs.hyprlock}/bin/hyprlock -n"; -/* + bind = [ "$mod SHIFT, RETURN, exec, $term" "$mod SHIFT, C, killactive" @@ -96,68 +96,13 @@ "$mod SHIFT, 3, movetoworkspace, 3" "$mod SHIFT, 4, movetoworkspace, 4" - { - key = "XF86MonBrightnessUp"; - mods = ""; - command = "light -A 10"; - } - { - key = "XF86MonBrightnessDown"; - mods = ""; - command = "light -U 10"; - } + ", XF86MonBrightnessUp, exec, light -A 10" + ", XF86MonBrightnessDown, exec, light -U 10" - { - 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"; - } + ", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_SINK@ 5%+" + ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_SINK@ 5%-" + ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle" ]; -*/ - bind = [ - # standard $mod keybindings - { key = "RETURN"; mods = "$mod SHIFT"; command = "$term"; } - { key = "C"; mods = "$mod SHIFT"; command = "killactive"; } - { key = "Q"; mods = "$mod SHIFT"; command = "exit"; } - { key = "P"; mods = "$mod"; command = "$menu"; } - - { key = "L"; mods = "$mod"; command = "$lock"; } - - { key = "H"; mods = "$mod"; command = "movefocus,l"; } - { key = "J"; mods = "$mod"; command = "movefocus,r"; } - { key = "K"; mods = "$mod"; command = "movefocus,u"; } - { key = "L"; mods = "$mod"; command = "movefocus,d"; } - - # workspace switching - { key = "1"; mods = "$mod"; command = "workspace,1"; } - { key = "2"; mods = "$mod"; command = "workspace,2"; } - { key = "3"; mods = "$mod"; command = "workspace,3"; } - { key = "4"; mods = "$mod"; command = "workspace,4"; } - - { key = "1"; mods = "$mod SHIFT"; command = "movetoworkspace,1"; } - { key = "2"; mods = "$mod SHIFT"; command = "movetoworkspace,2"; } - { key = "3"; mods = "$mod SHIFT"; command = "movetoworkspace,3"; } - { key = "4"; mods = "$mod SHIFT"; command = "movetoworkspace,4"; } - - # brightness keys - { key = "XF86MonBrightnessUp"; mods = ""; command = "light -A 10"; } - { key = "XF86MonBrightnessDown"; mods = ""; command = "light -U 10"; } - - # volume keys (PipeWire) - { 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"; } - ]; + }; }; -}; }