diff options
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 |
