From f89e1ba3e9a54b90117f84ced5d81c1ec55f3b4a Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 4 May 2021 19:35:30 +0200 Subject: [PATCH] home: wm: i3: fix audio media keys --- home/wm/i3.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home/wm/i3.nix b/home/wm/i3.nix index 87e5ec8..5039f28 100644 --- a/home/wm/i3.nix +++ b/home/wm/i3.nix @@ -202,11 +202,11 @@ in ) { # Media keys - "XF86AudioRaiseVolume" = "exec amixer -q -D pulse sset Master 5%+"; - "XF86AudioLowerVolume" = "exec amixer -q -D pulse sset Master 5%-"; - "Control+XF86AudioRaiseVolume" = "exec amixer -q -D pulse sset Master 1%+"; - "Control+XF86AudioLowerVolume" = "exec amixer -q -D pulse sset Master 1%-"; - "XF86AudioMute" = "exec amixer -q -D pulse sset Master toggle"; + "XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%"; + "XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%"; + "Control+XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +1%"; + "Control+XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -1%"; + "XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle"; "XF86AudioPlay" = "exec playerctl play-pause"; "XF86AudioNext" = "exec playerctl next";