From aa974af1819b418500a8b94a531086b170972eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 20 Jan 2022 15:40:35 +0100 Subject: sway: split config file --- config/sway/bindsym-media | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 config/sway/bindsym-media (limited to 'config/sway/bindsym-media') 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 -- cgit v1.2.3