Example Volume Media Key Binds (#470)

* Added example bindings for volume media keys in pages/Configuring/Binds.md in an Examples section at the bottom

* Added e flag to raise and lower per Vax's suggestion
This commit is contained in:
Ethan Harmon 2024-02-13 14:11:37 -05:00 committed by GitHub
parent 85838d2d20
commit ddeb745c2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -311,3 +311,16 @@ submap=reset
This works because the binds are executed in the order they appear, and This works because the binds are executed in the order they appear, and
assigning multiple actions per bind is possible. assigning multiple actions per bind is possible.
# Example Binds
## Media
These binds set the expected behavior for regular keyboard media volume keys,
including when the screen is locked:
```ini
bindel=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bindel=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
```