diff options
author | Karel Kočí <cynerd@email.cz> | 2022-01-20 15:40:35 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-01-20 15:40:35 +0100 |
commit | aa974af1819b418500a8b94a531086b170972eac (patch) | |
tree | 00e3d83e5a8a8d16c36d9086ee59e316d673a57d /config/sway/bindsym-media | |
parent | 8fae57dbeab4e49ca2ef8e0806ef9a25789d5157 (diff) | |
download | myconfigs-aa974af1819b418500a8b94a531086b170972eac.tar.gz myconfigs-aa974af1819b418500a8b94a531086b170972eac.tar.bz2 myconfigs-aa974af1819b418500a8b94a531086b170972eac.zip |
sway: split config file
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 |