diff options
author | xengineering <me@xengineering.eu> | 2021-11-19 08:22:03 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2021-11-19 08:22:03 +0100 |
commit | 429f56053ca0d571fc4b1764da5fe02946d6ce33 (patch) | |
tree | fc315f6e0ad966bd752f9a94044f853b09034b26 | |
parent | 09cb32972a6e922d26452023b4d408234fb56f18 (diff) | |
download | dotfiles-429f56053ca0d571fc4b1764da5fe02946d6ce33.tar dotfiles-429f56053ca0d571fc4b1764da5fe02946d6ce33.tar.zst dotfiles-429f56053ca0d571fc4b1764da5fe02946d6ce33.zip |
Add Volume Notification on Change in Sway
-rw-r--r-- | .config/sway/config | 4 |
1 files 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%- |