Add mediakey maps for locked and normal mode to example config

The example config now additionally demonstrates how to use a shell loop
to create a mapping in multiple modes, how mediakeys can be mapped and
how to use the "None" modifier.
This commit is contained in:
Leon Henrik Plickat 2020-10-22 20:55:48 +02:00 committed by Isaac Freund
parent e4a3698d86
commit dd92b05af0

View file

@ -108,6 +108,21 @@ riverctl map normal $mod F11 enter-mode passthrough
# Mod+F11 to return to normal mode # Mod+F11 to return to normal mode
riverctl map passthrough $mod F11 enter-mode normal riverctl map passthrough $mod F11 enter-mode normal
# Various media key mapping for both normal and locked mode
for mode in normal locked
do
riverctl map "${mode}" None XF86Eject spawn eject -T
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 --set-volume 0
riverctl map "${mode}" None XF86AudioMedia spawn playerctl play-pause
riverctl map "${mode}" None XF86AudioPlay spawn playerctl play-pause
riverctl map "${mode}" None XF86AudioPrev spawn playerctl previous
riverctl map "${mode}" None XF86AudioNext spawn playerctl next
riverctl map "${mode}" None XF86MonBrightnessUp spawn light -A 5
riverctl map "${mode}" None XF86MonBrightnessDown spawn light -U 5
done
# Set the layout on startup # Set the layout on startup
riverctl layout rivertile left riverctl layout rivertile left