aboutsummaryrefslogtreecommitdiff
path: root/config/sway/bindsym-media
blob: 5b75934f02d669fd4c76d826079a12b642ca5544 (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 pactl set-sink-volume @DEFAULT_SINK@ +5% && pkill -RTMIN+10 i3blocks
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && pkill -RTMIN+10 i3blocks
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_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 xbacklight -inc 20
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 20

# 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