config: herbstluftwm: autostart: use pactl for volume control

This commit is contained in:
Thomas Preisner 2019-06-21 14:41:18 +02:00
parent 28ebfb3af5
commit 786432646e

View file

@ -87,9 +87,10 @@ hc keybind $Mod-b spawn /usr/bin/chromium
hc keybind $Mod-grave spawn "$HOME"/.config/herbstluftwm/q3terminal.sh 9
hc keybind $Mod-Shift-f chain , attr clients.focus.ewmhnotify false , attr clients.focus.fullscreen false , attr clients.focus.ewmhnotify true
hc keybind XF86AudioMute chain . spawn amixer -q set Master toggle . spawn herbstclient emit_hook UPDATE
hc keybind XF86AudioLowerVolume and . spawn amixer -q set Master playback '5%-' . spawn herbstclient emit_hook UPDATE
hc keybind XF86AudioRaiseVolume chain . spawn amixer -q set Master playback '5%+' . spawn herbstclient emit_hook UPDATE
hc keybind XF86AudioMute chain . spawn pactl set-sink-mute 0 toggle . spawn herbstclient emit_hook UPDATE
hc keybind XF86AudioLowerVolume chain . spawn pactl set-sink-mute 0 false . spawn pactl set-sink-volume 0 '-5%' . spawn herbstclient emit_hook UPDATE
hc keybind XF86AudioRaiseVolume chain . spawn pactl set-sink-mute 0 false . spawn pactl set-sink-volume 0 '+5%' . spawn herbstclient emit_hook UPDATE
hc keybind XF86AudioMicMute chain . spawn pactl set-source-mute 1 toggle . spawn herbstclient emit_hook UPDATE
# tags
tag_names=( {1..9} )