Update to font awesome icons instead of emoji

This commit is contained in:
John Mertz 2024-08-18 13:07:53 -06:00
parent 20102a4006
commit 20757931d0
1 changed files with 13 additions and 11 deletions

View File

@ -8,21 +8,23 @@ else
fi fi
if [[ $MODE == "none" ]]; then if [[ $MODE == "none" ]]; then
ICON="" ICON=""
elif [[ $MODE == "fade" ]]; then elif [[ $MODE == "fade" ]]; then
ICON="🌌" ICON=""
elif [[ $MODE == "dim" ]]; then elif [[ $MODE == "dim" ]]; then
ICON="" ICON=""
elif [[ $MODE == "lock" ]]; then elif [[ $MODE == "lock" ]]; then
ICON="🔒" ICON=""
elif [[ $MODE == "sleep" ]]; then elif [[ $MODE == "sleep" ]]; then
ICON="💤" ICON=""
elif [[ $MODE == "hibernate" ]]; then elif [[ $MODE == "hibernate" ]]; then
ICON="↯ " ICON=" "
else
ICON="? "
echo '{"text":"'$ICON'","icon":"'$ICON'","tooltip":"Error: Invalid mode ('$MODE')","class":"'$MODE'"}'
exit
fi fi
echo '{"text":"'$ICON'","icon":"'$ICON'","tooltip":"Change sleep mode ('$MODE')","class":"'$MODE'"}' MSG="Change sleep mode ($MODE)"
if [[ -z $ICON ]]; then
ICON="🯄 "
MSG="Error: Invalid mode ($MODE)"
fi
echo '{"text":"'$ICON'","icon":"'$ICON'","tooltip":"'$MSG'","class":"'$MODE'"}'