dots/configs/home/.config/polybar/Scripts/pipe.sh

16 lines
227 B
Bash
Raw Normal View History

2023-10-27 19:56:44 +02:00
#!/bin/sh
muted=$(pamixer --get-mute)
if [ "$muted" = true ]; then
echo "--"
else
volume=$(pamixer --get-volume)
if [ "$volume" -gt 49 ]; then
echo "$volume %"
else
echo "$volume %"
fi
fi