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 | 566988319d6b006cc053bc44b19bd9e6ce23b1d6 (patch) | |
| tree | fc315f6e0ad966bd752f9a94044f853b09034b26 | |
| parent | facdd2e1093865da6e1f1f9af6f4c4e63de1876b (diff) | |
| download | dotfiles-566988319d6b006cc053bc44b19bd9e6ce23b1d6.tar dotfiles-566988319d6b006cc053bc44b19bd9e6ce23b1d6.tar.zst dotfiles-566988319d6b006cc053bc44b19bd9e6ce23b1d6.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%- |
