1
0
Fork 0

update status bar (new clock format)

This commit is contained in:
Luca Bilke 2022-07-25 16:30:12 +02:00
parent ccfd03029b
commit 6cdbed97d2
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%"