From 5680901379c7e65bd496737fc5a75093f66365f3 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Mon, 13 Nov 2023 17:16:39 +0100 Subject: [PATCH] Hyprland: keyboard shortcuts bindings --- modules/hm/hyprland.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/hm/hyprland.nix b/modules/hm/hyprland.nix index 1f1baf2..fa12d7d 100644 --- a/modules/hm/hyprland.nix +++ b/modules/hm/hyprland.nix @@ -7,7 +7,7 @@ ./yazi.nix ]; - home.packages = builtins.attrValues { inherit (pkgs) wofi swaylock way-lockscreen wlogout; }; + home.packages = builtins.attrValues { inherit (pkgs) wofi swaylock way-lockscreen wlogout playerctl brillo pamixer; }; # wayland.windowManager.hyprland = { }; @@ -212,5 +212,18 @@ # Move/resize windows with mainMod + LMB/RMB and dragging bindm = SUPER, mouse:272, movewindow bindm = SUPER, mouse:273, resizewindow + + bind = , XF86AudioLowerVolume, exec, pamixer -d 2 -u + bind = , XF86AudioMute, exec, pamixer -t + bind = , XF86AudioRaiseVolume, exec, pamixer -i 2 -u + + bind = , XF86AudioNext, exec, playerctl next + bind = , XF86AudioPlay, exec, playerctl play-pause + bind = , XF86AudioPrev, exec, playerctl previous + + bind = , XF86PowerOff, exec, wlogout + + bind = , XF86MonBrightnessUp, exec, brillo -A 10 + bind = , XF86MonBrightnessDown, exec, brillo -U 10 ''; }