mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-25 00:38:20 -05:00
Update
This commit is contained in:
parent
72f1cf26e1
commit
f67c9240e8
@ -1,2 +1,2 @@
|
||||
LastUsed=1692982202
|
||||
LastUsed=1692984119
|
||||
Message='Fully Updated'
|
||||
|
@ -5,11 +5,11 @@ get_updates() {
|
||||
# load colors
|
||||
. $HOME/.config/flexiflow_bar/bar_themes/minimal-mistakes
|
||||
|
||||
updates=$(yay -Pn)
|
||||
updates=$(yay -Qu | wc -l)
|
||||
timestamp=$(date +%s)
|
||||
icon=""
|
||||
|
||||
if [ -z "$updates" ]; then
|
||||
if [ "$updates" -ge "0" ]; then
|
||||
updatecount="Fully Updated"
|
||||
elif [ "$updates" -ge "1" ]; then
|
||||
updatecount="$updates Update"
|
||||
@ -23,6 +23,7 @@ get_updates() {
|
||||
echo -e "LastUsed=${newtime}\nMessage='${updatecount}'" >$configFile
|
||||
else
|
||||
if [[ "$timestamp" -ge "$LastUsed" ]]; then
|
||||
updatecount=" $Message"
|
||||
printf "%s %s \n" "^c$Foreground^^b$Purple^ $icon " "^c$Foreground^^b$Purple_Bright^ $updatecount"
|
||||
newtime=$(expr $timestamp + 900)
|
||||
echo -e "LastUsed=${newtime}\nMessage='${updatecount}'" >$configFile
|
||||
|
@ -12,7 +12,7 @@
|
||||
#Created:
|
||||
# Sun 03 January 2021, 05:09:33 PM [GMT]
|
||||
#Modified:
|
||||
# Thu 08 December 2022, 07:36:45 AM [GMT]
|
||||
# Fri 25 August 2023, 05:45:05 PM [GMT+1]
|
||||
#
|
||||
#Description:
|
||||
# Watch your youtube subscriptions without a youtube account
|
||||
@ -48,7 +48,7 @@ die() {
|
||||
}
|
||||
|
||||
usage() {
|
||||
die 'Usage: repomenue_youtube_subs [-c cat_subs] [-g gen_links] [-u update_subs] [-d daemonize]'
|
||||
die 'Usage: youtube_subs [-c cat_subs] [-g gen_links] [-u update_subs] [-d daemonize]'
|
||||
}
|
||||
|
||||
# -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
|
||||
|
Loading…
Reference in New Issue
Block a user