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
if [[ $MODE == "none" ]]; then
ICON=""
ICON=""
elif [[ $MODE == "fade" ]]; then
ICON="🌌"
ICON=""
elif [[ $MODE == "dim" ]]; then
ICON=""
ICON=""
elif [[ $MODE == "lock" ]]; then
ICON="🔒"
ICON=""
elif [[ $MODE == "sleep" ]]; then
ICON="💤"
ICON=""
elif [[ $MODE == "hibernate" ]]; then
ICON="↯ "
else
ICON="? "
echo '{"text":"'$ICON'","icon":"'$ICON'","tooltip":"Error: Invalid mode ('$MODE')","class":"'$MODE'"}'
exit
ICON=" "
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'"}'