sway: Add bindings for audio volume control based on WirePlumber

This commit is contained in:
Peter Cai 2023-01-04 15:59:21 -05:00
parent 4b0e5c04ee
commit fcc18b4859
1 changed files with 5 additions and 0 deletions

View File

@ -237,6 +237,11 @@ bindsym Shift+F10 exec grimshot --notify save screen
bindsym Ctrl+Tab workspace next
bindsym Ctrl+grave workspace prev
# Audio volume (WirePlumber)
bindsym --locked XF86AudioRaiseVolume exec "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+"
bindsym --locked XF86AudioLowerVolume exec "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"
bindsym --locked XF86AudioMute exec "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
bar {
swaybar_command waybar
}