diff options
| author | tslil clingman <> | 2023-12-03 21:38:21 +0100 |
|---|---|---|
| committer | tslil clingman <> | 2023-12-03 21:51:13 +0100 |
| commit | 9d37b8ec146a2816d2c9941b4ca241cade81059d (patch) | |
| tree | d95801e70efd78cf88f79723e18cecdce1bbeea4 /river/init | |
| parent | b5ff63187314df61c1c6517f3d04d3807e158931 (diff) | |
[river] fix volume binds
Diffstat (limited to 'river/init')
| -rwxr-xr-x | river/init | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -95,21 +95,15 @@ riverctl declare-mode passthrough riverctl map normal Super F11 enter-mode passthrough riverctl map passthrough Super F11 enter-mode normal -# Various media key mapping examples for both normal and locked mode which do -# not have a modifier +# Control keys for mode in normal locked do - # Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer) - riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5' - riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5' - riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute' - - # Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl) + riverctl map $mode None XF86AudioRaiseVolume spawn "pactl set-sink-volume 0 +2%" + riverctl map $mode None XF86AudioLowerVolume spawn "pactl set-sink-volume 0 -2%" + riverctl map $mode None XF86AudioMute spawn "pactl set-sink-mute 0 toggle" riverctl map $mode None XF86AudioPlay spawn 'mpc toggle' riverctl map $mode None XF86AudioPrev spawn 'mpc previous' riverctl map $mode None XF86AudioNext spawn 'mpc next' - - # Control screen backlight brightness with light (https://github.com/haikarainen/light) riverctl map $mode None XF86MonBrightnessUp spawn 'light -A 1' riverctl map $mode None XF86MonBrightnessDown spawn 'light -U 1' done |
