From 429f56053ca0d571fc4b1764da5fe02946d6ce33 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 19 Nov 2021 08:22:03 +0100 Subject: Add Volume Notification on Change in Sway --- .config/sway/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index ecdec76..116e617 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -83,8 +83,8 @@ workspace 3 output eDP-1 bindsym $mod+d exec $menu # Pulse Audio controls - bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume - bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume + bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% && notify-send -t 500 'lauter' "$(pactl get-sink-volume 0 | grep Volume | awk '{print $5,$12}')" #increase sound volume + bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% && notify-send -t 500 'leiser' "$(pactl get-sink-volume 0 | grep Volume | awk '{print $5,$12}')" #decrease sound volume bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound # Brightness Controls bindsym XF86MonBrightnessDown exec brightnessctl set 5%- -- cgit v1.2.3-70-g09d2