From ddeb745c2af3cb07479ec570aa58fbb118c68d0d Mon Sep 17 00:00:00 2001 From: Ethan Harmon Date: Tue, 13 Feb 2024 14:11:37 -0500 Subject: [PATCH] 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 --- pages/Configuring/Binds.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pages/Configuring/Binds.md b/pages/Configuring/Binds.md index 74fb6f5..5d9f81c 100644 --- a/pages/Configuring/Binds.md +++ b/pages/Configuring/Binds.md @@ -311,3 +311,16 @@ submap=reset This works because the binds are executed in the order they appear, and 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 +```