From c105cb5f01c363bb35a8773b7921ebafb39d8cf3 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sat, 9 Nov 2024 17:20:37 +0000 Subject: Toggle mute off if volume increased or decresed when mute is on in multimedia key binds. --- .config/river/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/river/init') diff --git a/.config/river/init b/.config/river/init index 1d048c0..0f776a4 100755 --- a/.config/river/init +++ b/.config/river/init @@ -177,8 +177,8 @@ riverctl map passthrough Super F11 enter-mode normal for mode in normal locked do # Control volume - riverctl map $mode None XF86AudioRaiseVolume spawn 'mixer vol.volume=+2%' - riverctl map $mode None XF86AudioLowerVolume spawn 'mixer vol.volume=-2%' + riverctl map $mode None XF86AudioRaiseVolume spawn 'mixer vol.mute=off && mixer vol.volume=+2%' + riverctl map $mode None XF86AudioLowerVolume spawn 'mixer vol.mute=off && mixer vol.volume=-2%' riverctl map $mode None XF86AudioMute spawn 'mixer vol.mute=toggle' # Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl) -- cgit v1.2.3