mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-28 18:28:39 -05:00
Update bar script
This commit is contained in:
parent
1a5e101547
commit
bdbf8c8835
@ -1,2 +1,2 @@
|
|||||||
LastUsed=1692530530
|
LastUsed=1692531430
|
||||||
Message=' Fully Updated'
|
Message='Fully Updated'
|
||||||
|
@ -10,11 +10,11 @@ get_updates() {
|
|||||||
icon=" "
|
icon=" "
|
||||||
|
|
||||||
if [ -z "$updates" ]; then
|
if [ -z "$updates" ]; then
|
||||||
updatecount=" Fully Updated"
|
updatecount="Fully Updated"
|
||||||
elif [ "$updates" -ge "1" ]; then
|
elif [ "$updates" -ge "1" ]; then
|
||||||
updatecount=" $updates Update"
|
updatecount="$updates Update"
|
||||||
else
|
else
|
||||||
updatecount=" $updates Updates"
|
updatecount="$updates Updates"
|
||||||
fi
|
fi
|
||||||
[[ -f $configFile ]] && . $configFile
|
[[ -f $configFile ]] && . $configFile
|
||||||
if [[ -z "$LastUsed" ]] || [[ -z "$Message" ]]; then
|
if [[ -z "$LastUsed" ]] || [[ -z "$Message" ]]; then
|
||||||
@ -27,7 +27,7 @@ get_updates() {
|
|||||||
newtime=$(expr $timestamp + 900)
|
newtime=$(expr $timestamp + 900)
|
||||||
echo -e "LastUsed=${newtime}\nMessage='${updatecount}'" >$configFile
|
echo -e "LastUsed=${newtime}\nMessage='${updatecount}'" >$configFile
|
||||||
else
|
else
|
||||||
updatecount="$Message"
|
updatecount=" $Message"
|
||||||
printf " %s %s \n" "^c$Foreground^^b$Red^$icon" "^c$Foreground^^b$Red_Bright^$updatecount"
|
printf " %s %s \n" "^c$Foreground^^b$Red^$icon" "^c$Foreground^^b$Red_Bright^$updatecount"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user