dotfiles/.config/i3/layers/config.post-main-10-audio

17 lines
806 B
Plaintext

# Use pactl to adjust volume in PulseAudio.
bindsym XF86AudioRaiseVolume exec --no-startup-id pavolctl +10%
bindsym XF86AudioLowerVolume exec --no-startup-id pavolctl -10%
bindsym XF86AudioMute exec --no-startup-id pavolctl toggle Master
bindsym XF86AudioMicMute exec --no-startup-id pavolctl toggle Capture
# Set cmus controls
bindsym XF86AudioStop exec --no-startup-id "cmusctl -c --stop"
bindsym XF86AudioPlay exec --no-startup-id "cmusctl -c --pause"
bindsym XF86AudioPrev exec --no-startup-id "cmusctl -c --prev"
bindsym XF86AudioNext exec --no-startup-id "cmusctl -c --next"
bindsym Ctrl+XF86AudioPrev exec --no-startup-id "cmusctl -c '--seek -5s'"
bindsym Ctrl+XF86AudioNext exec --no-startup-id "cmusctl -c '--seek +5s'"
# Write cmus file for i3status
exec_always --no-startup-id cmusctl -l -e 2