From ba3085f348477ca289eef1353b12c36488e47ad3 Mon Sep 17 00:00:00 2001 From: esche Date: Sun, 10 Dec 2023 20:45:02 +0100 Subject: [PATCH] changed multimedia controls to support notifications --- .config/sway/config | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index b2828e1..7034acb 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -36,7 +36,7 @@ Font "Noto Sans" Regular 14 ### Autostart exec_always /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 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 exec_always xrandr --output XWAYLAND0 --primary exec playerctld daemon @@ -105,14 +105,14 @@ Font "Noto Sans" Regular 14 # # Multimedia keys # - # Pulse Audio controls - bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_SINK@ 5%+ -l 1.2 - bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_SINK@ 5%- -l 1.2 - bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_SINK@ toggle - bindsym --locked XF86AudioMicMute exec wpctl set-mute @DEFAULT_SOURCE@ toggle + # Audio controls + 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@ 0.05- && ~/.config/sway/notify.sh --audio + 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 && ~/.config/sway/controls.sh --mic-toggle # Display controls - bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- - bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5% + bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- -e && ~/.config/sway/notify.sh --brightness + bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5% -e && ~/.config/sway/notify.sh --brightness # Media player controls (MPRIS) bindsym --locked XF86AudioPlay exec playerctl play-pause bindsym --locked XF86AudioNext exec playerctl next