15 lines
288 B
Bash
Executable File
15 lines
288 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
let volume="$(pamixer --get-volume)"
|
|
local icon
|
|
if [[ "$(pamixer --get-mute)" = "true" ]]; then
|
|
icon=''
|
|
elif ((${volume} > 50)); then
|
|
icon=''
|
|
elif ((${volume} > 0)); then
|
|
icon=''
|
|
else
|
|
icon=''
|
|
fi
|
|
printf '%s%3d%%\n' "${icon}" "${volume}"
|