pdate icons in scripts

This commit is contained in:
2023-05-04 15:04:51 -07:00
parent 2e64eee765
commit 41c41b7702
3 changed files with 47 additions and 26 deletions

View File

@ -3,12 +3,12 @@
let volume="$(pamixer --get-volume)"
local icon
if [[ "$(pamixer --get-mute)" = "true" ]]; then
icon=''
icon='󰸈'
elif ((${volume} > 50)); then
icon=''
icon='󰖀'
elif ((${volume} > 0)); then
icon='奔'
icon='󰖀'
else
icon=''
icon='󰕾'
fi
printf '%s%3d%%\n' "${icon}" "${volume}"