blob: 13026fcb0acee1c24b8a01118a5c38d035379507 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# vim: ft=swayconfig
# Audio control
bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.05+ && pkill -RTMIN+10 i3blocks
bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.05- && pkill -RTMIN+10 i3blocks
bindsym XF86AudioMute exec --no-startup-id wpctl set-volume @DEFAULT_AUDIO_SINK@ toggle && pkill -RTMIN+10 i3blocks
# Run and configure pulsemixer
bindsym $mod+p exec alacritty -t "Pulsemixer" -e pulsemixer
for_window [ title="Pulsemixer" ] floating enable;
for_window [ title="Pulsemixer" ] resize set 50 ppt 50 ppt
for_window [ title="Pulsemixer" ] move position center
# Screen brightness controls
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 10
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 10
# Media player controls
bindsym XF86AudioPlay exec --no-startup-id mpc toggle && pkill -RTMIN+12 i3blocks
bindsym XF86AudioStop exec --no-startup-id mpc stop && pkill -RTMIN+12 i3blocks
bindsym XF86AudioNext exec --no-startup-id mpc next && pkill -RTMIN+12 i3blocks
bindsym XF86AudioPrev exec --no-startup-id mpc prev && pkill -RTMIN+12 i3blocks
# Run media player control app
bindsym $mod+Shift+m exec alacritty -t "Music player daemon client" -e ncmpcpp
for_window [ title="Music player daemon client" ] floating enable;
for_window [ title="Music player daemon client" ] resize set 70 ppt 70 ppt
for_window [ title="Music player daemon client" ] move position center
|