From de1d03bebff4c5c680742ddce316b3d845a046f5 Mon Sep 17 00:00:00 2001 From: nnduc Date: Sun, 15 Dec 2024 02:35:00 +0000 Subject: [PATCH] changed volume control --- i3/config | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/i3/config b/i3/config index 80a4086..726de58 100644 --- a/i3/config +++ b/i3/config @@ -50,11 +50,11 @@ exec --no-startup-id polybar set $refresh_i3status killall -SIGUSR1 i3status -# Use pactl to adjust volume in PulseAudio. -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status -bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status +# Use wireplumber to adjust volume. +bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id wpctl set-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status # Media player key bindings (need media-sound/playerctl for playerctl.) bindsym XF86AudioPlay exec playerctl play