From 8a19c9cf00044f5ec2f1c08389db62da6aab239a Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Fri, 4 Apr 2025 23:52:10 +0800 Subject: [PATCH] feat(hyprland): add keybinds for audio controls --- modules/programs/hyprland.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/programs/hyprland.nix b/modules/programs/hyprland.nix index 196ae2a..c62ccd9 100644 --- a/modules/programs/hyprland.nix +++ b/modules/programs/hyprland.nix @@ -1,3 +1,4 @@ +{ pkgs, ... }: { environment.loginShellInit = # sh '' @@ -113,13 +114,17 @@ # H and L to move between workspaces on the current monitor including creation "$mainMod_CTRL, H, workspace, r-1" "$mainMod_CTRL, L, workspace, r+1" + + "SUPER, 7, exec, ${pkgs.playerctl}/bin/playerctl previous" + "SUPER, 8, exec, ${pkgs.playerctl}/bin/playerctl play-pause" + "SUPER, 9, exec, ${pkgs.playerctl}/bin/playerctl next" ]; # Repeat when held bindle = [ # 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%-" + "SUPER, equal, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+" + "SUPER, minus, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-" ]; bindm = [