elenapan/Scripts/volume-notify.sh
elena 9a2fdf5c79 updated some scripts and uploaded some new ones
Former-commit-id: 6c9faff508
Former-commit-id: 17d19dad6bdde82ff8c2bcc983f87a49bb4a5e6f
Former-commit-id: 4f66d0d17a4bb9ceb3eedf158bae309fa71fb8b1
2017-12-07 09:45:55 +02:00

9 lines
No EOL
269 B
Bash
Executable file

#!/bin/bash
VOL="$(pactl list sinks | grep "Volume: " | awk '{print $5}' | head -1)"
MUTE="$(pactl list sinks | grep -i "mute" | head -1 | awk '{print $2}')"
if [[ "$MUTE" != "no" ]]; then
notify-send " Volume is muted"
else
notify-send " Volume is at $VOL"
fi