You are not logged in.
yes the most incredible crap script for pacman ever, he eats a ghost...
in cron hourly this: (saved as /etc/cron.hourly/sync-pacman and made executable and owned by root)
#!/bin/sh
newlist=`pacman -Sy`
normallist=':: Synchronizing package databases...\n core is up to date\n extra is up to date\n community is up to date'
if [ "$newlist"="$normallist" ]
then
echo -e " .--. \n\`-o_ \ \n.-' / \n '--' \n" > /home/YOURNAME/SOMEPLACE/pacman-status
else
echo -e " .-. .--. \n| oo| \`-o_ \ \n| | .-' / \n'^^^' '--' \n" > /home/YOURNAME/SOMEPLACE/pacman-status
fi
exit
called from a conky with this
${execi 240 cat /home/YOURNAME/SOMEPLACE/pacman-status}
produces one of these magical results on the desktop depending on pacman status
(In mine when the ghost is present it means updates available)
EDIT: Trying to improve the ascii
Last edited by tawan (2010-04-04 08:42:15)
Offline
Okay it really seems to be a pointless script but I'm glad I helped you get it done
Offline
pointless? haha
Thanks for the help, i find it fun and useful
http://imgur.com/VBDvs.jpg - No updates
http://imgur.com/qhhKj.jpg - Updates
Edit: Use thumbnails for big images - Allan
sorry Allan, was just getting used to using imgur instead of omploader ~ tawan
Last edited by tawan (2010-04-04 09:39:59)
Offline
This looks like fun-I will give it a try.
Offline
after messing with the ascii for a while I decided on a much cleaner approach..
The star shows at top right if I have updates and nothing shows at all if the system is up to date
I just did this with
echo " " for all ok
echo "D" for updates
and used the font pizzadude bullets for the conky (resulting in a star when D is echoed)
Last edited by tawan (2010-04-04 11:33:58)
Offline