diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-11-09 17:20:37 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-11-09 17:20:37 +0000 |
commit | c105cb5f01c363bb35a8773b7921ebafb39d8cf3 (patch) | |
tree | 73e7208043775ee2497a0d398d537b739e617a8d /.config/river | |
parent | 3bc9805389e034105cff77db163759d64356ea40 (diff) |
Toggle mute off if volume increased or decresed when mute is on in multimedia key binds.
Diffstat (limited to '.config/river')
-rwxr-xr-x | .config/river/init | 4 |
1 files changed, 2 insertions, 2 deletions
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) |