Skip to content

Commit

Permalink
feat(river): add repeat to some mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
KirkEasterson committed Oct 4, 2024
1 parent 3e7a4d3 commit 8bc88b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions river/.config/river/modules/04-mappings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ riverctl map passthrough Super F11 enter-mode normal
# not have a modifier
for mode in normal locked; do
# Eject the optical drive (well if you still have one that is)
riverctl map $mode None XF86MonBrightnessDown spawn "change_brightness.sh lower"
riverctl map $mode None XF86MonBrightnessUp spawn "change_brightness.sh raise"
riverctl map -repeat $mode None XF86MonBrightnessDown spawn "change_brightness.sh lower"
riverctl map -repeat $mode None XF86MonBrightnessUp spawn "change_brightness.sh raise"

# Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
riverctl map $mode None XF86AudioLowerVolume spawn "change_vol.sh lower"
riverctl map $mode None XF86AudioRaiseVolume spawn "change_vol.sh raise"
riverctl map -repeat $mode None XF86AudioLowerVolume spawn "change_vol.sh lower"
riverctl map -repeat $mode None XF86AudioRaiseVolume spawn "change_vol.sh raise"
riverctl map $mode None XF86AudioMute spawn "change_vol.sh toggle-mute"
riverctl map $mode None XF86AudioMicMute spawn "change_vol.sh toggle-mic-mute"

Expand All @@ -171,6 +171,6 @@ for mode in normal locked; do
riverctl map $mode None XF86AudioStop spawn "playerctl stop"
riverctl map $mode None XF86AudioPrev spawn "playerctl previous"
riverctl map $mode None XF86AudioNext spawn "playerctl next"
riverctl map $mode None XF86AudioRewind spawn "playerctl position 5-"
riverctl map $mode None XF86AudioForward spawn "playerctl position 5+"
riverctl map -repeat $mode None XF86AudioRewind spawn "playerctl position 5-"
riverctl map -repeat $mode None XF86AudioForward spawn "playerctl position 5+"
done

0 comments on commit 8bc88b4

Please sign in to comment.