2022-05-27 21:07:07 +02:00
|
|
|
# Use pactl to adjust volume in PulseAudio.
|
|
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pavolctl +10%
|
|
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id pavolctl -10%
|
2022-05-28 23:51:20 +02:00
|
|
|
bindsym XF86AudioMute exec --no-startup-id pavolctl toggle Master
|
|
|
|
bindsym XF86AudioMicMute exec --no-startup-id pavolctl toggle Capture
|
2022-05-27 21:07:07 +02:00
|
|
|
|
|
|
|
# Set cmus controls
|
2022-05-29 16:03:39 +02:00
|
|
|
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'"
|
2022-05-27 21:07:07 +02:00
|
|
|
|
|
|
|
# Write cmus file for i3status
|
|
|
|
exec_always --no-startup-id cmusctl -l -e 2
|