15 lines
227 B
Bash
Executable file
15 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
|