0 Members and 3 Guests are viewing this topic.
#!/bin/bash# Check for Updates - for the Linux Lite Conky Widget# Licence - GPLv2 Sharing is Caring# Jerry Bezencon - Linux Lite 2016# VariablesNUMOFUPDATES=$(LANG=C apt-get upgrade -s |grep -P '^\d+ upgraded'|cut -d" " -f1)UPDATEY1="There is 1 Update available"UPDATEY2="There are $NUMOFUPDATES Updates available"UPDATEN="Your system is up to date"# Statementsif [ $NUMOFUPDATES -gt 1 ]; then echo "\${color3}"$UPDATEY2 # If there is more than 1 update availableelif [ $NUMOFUPDATES -eq 1 ]; then echo "\${color3}"$UPDATEY1 # Return 1 Update availableelse echo "\${color2}"$UPDATEN # System is up to datefiexit 0
Did you extract it directly to your home folder? For example, if you downloaded it into your Downloads folder, you may have extracted it into your Downloads folder. Sent from my Nexus 6 using Tapatalk
.config.conky
$ mv .conky ~/
$ mv .config/autostart/litewidget.desktop ~/.config/autostart/
Important to note for anyone else who wants to give it a go. The package conky-all needs to be installed! If the package conky got installed, it would display an error related to the image.
sudo apt-get install conky-all
Is the "apt-get update" part covered by the system out of the box? I see that you straight away check for available updates via "apt-get upgrade".
NUMOFUPDATES=$(LANG=C /usr/lib/update-notifier/apt-check 2>&1 | cut -d ';' -f 1)