1
0
Fork 0
This commit is contained in:
Luca Bilke 2022-07-26 18:27:04 +02:00
commit 3e763dbea0
No known key found for this signature in database
GPG Key ID: 7B77C51E8C779E75
2 changed files with 6 additions and 6 deletions

View File

@ -26,4 +26,4 @@ case $BLOCK_BUTTON in
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
date "+%Y %b %d (%a) $icon%I:%M%p"
date "+%d.%M.%Y $icon%H:%M"

View File

@ -13,18 +13,18 @@ case $BLOCK_BUTTON in
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
[ $(pamixer --get-mute) = true ] && echo ﱝ && exit
[ $(pamixer --get-mute) = true ] && echo " " && exit
vol="$(pamixer --get-volume)"
if [ "$vol" -gt "70" ]; then
icon=" 墳"
icon="墳"
elif [ "$vol" -gt "30" ]; then
icon=" 奔"
icon="奔"
elif [ "$vol" -gt "0" ]; then
icon=" 奄"
icon="奄"
else
echo " ﱝ "&& exit
fi
echo "$icon$vol%"
echo " $icon $vol%"