blob: 8f595051ebded1a49124c2d12b0e2769c829530f (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '\d+%' | head -n 1 | tr -d '%')
muted=$(pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}')
if [ "$muted" = "yes" ]; then
echo "Muted"
else
echo "${volume}"
fi
|