dots/configs/home/.config/polybar/Scripts/pipe.sh
2023-10-27 19:56:44 +02:00

16 lines
227 B
Bash
Executable file

#!/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