16 lines
227 B
Bash
16 lines
227 B
Bash
|
#!/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
|