changed multimedia controls to support notifications

This commit is contained in:
esche 2023-12-10 20:45:02 +01:00
parent 1d070ae53b
commit ba3085f348

View file

@ -36,7 +36,7 @@ Font "Noto Sans" Regular 14
### Autostart ### Autostart
exec_always /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec_always /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec gammastep-indicator -c ~/.config/sway/gammastep.ini exec gammastep-indicator -c ~/.config/sway/gammastep.ini
exec mako --background-color "#$backgr" --text-color "#$text" -c ~/.config/sway/mako.conf exec mako --background-color "#$backgr" --text-color "#$text" --progress-color "#$highlight" -c ~/.config/sway/mako.conf
# use "xwayland disable" for pure wayland session # use "xwayland disable" for pure wayland session
exec_always xrandr --output XWAYLAND0 --primary exec_always xrandr --output XWAYLAND0 --primary
exec playerctld daemon exec playerctld daemon
@ -105,14 +105,14 @@ Font "Noto Sans" Regular 14
# #
# Multimedia keys # Multimedia keys
# #
# Pulse Audio controls # Audio controls
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_SINK@ 5%+ -l 1.2 bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_SINK@ 0.05+ -l 1.2 && ~/.config/sway/notify.sh --audio
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_SINK@ 5%- -l 1.2 bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_SINK@ 0.05- && ~/.config/sway/notify.sh --audio
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_SINK@ toggle bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_SINK@ toggle && ~/.config/sway/notify.sh --audio-mute
bindsym --locked XF86AudioMicMute exec wpctl set-mute @DEFAULT_SOURCE@ toggle bindsym --locked XF86AudioMicMute exec wpctl set-mute @DEFAULT_SOURCE@ toggle && ~/.config/sway/controls.sh --mic-toggle
# Display controls # Display controls
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- -e && ~/.config/sway/notify.sh --brightness
bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5% bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5% -e && ~/.config/sway/notify.sh --brightness
# Media player controls (MPRIS) # Media player controls (MPRIS)
bindsym --locked XF86AudioPlay exec playerctl play-pause bindsym --locked XF86AudioPlay exec playerctl play-pause
bindsym --locked XF86AudioNext exec playerctl next bindsym --locked XF86AudioNext exec playerctl next