diff options
Diffstat (limited to 'config/sway/bindsym-media')
-rw-r--r-- | config/sway/bindsym-media | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/config/sway/bindsym-media b/config/sway/bindsym-media new file mode 100644 index 0000000..5b75934 --- /dev/null +++ b/config/sway/bindsym-media @@ -0,0 +1,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 |