feat(hyprland): add keybinds for audio control

This commit is contained in:
Mohammad Rafiq 2025-05-20 21:20:09 +08:00
parent 3770921930
commit 49165e30d8
No known key found for this signature in database
2 changed files with 14 additions and 1 deletions

View file

@ -1,4 +1,5 @@
{
pkgs,
config,
lib,
osConfig,
@ -24,7 +25,7 @@ in
exec-once = [ "uwsm app -- $LOCKSCREEN" ];
}
(import ./decoration.nix)
(import ./keybinds.nix)
(import ./keybinds.nix { inherit pkgs; })
];
};
xdg.configFile."uwsm/env".text = # sh

View file

@ -1,5 +1,7 @@
{ pkgs, ... }:
{
"$hypr" = "CTRL_SUPER_ALT_SHIFT";
"$meh" = "CONTROL_SHIFT_ALT";
bind = [
"$hypr, Q, exec, uwsm stop"
"SUPER, W, killactive"
@ -23,4 +25,14 @@
"$hypr, H, movetoworkspace, r-1"
"$hypr, L, movetoworkspace, r+1"
];
bindle = [
"SUPER, 6, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"
"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"
"SUPER, 0, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
"$meh, mouse_up, resizeactive, 10% 10%"
"$meh, mouse_down, resizeactive, -10% -10%"
];
}