sway: Add bindings for audio volume control based on WirePlumber

master
Peter Cai 3 months ago
parent 4b0e5c04ee
commit fcc18b4859

@ -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
}

Loading…
Cancel
Save