You are not logged in.

#1 2010-04-04 08:15:15

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

the most incredible crap script for pacman ever, he eats a ghost...

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

8Am2V.png

(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

#2 2010-04-04 08:42:45

xCrucialDudex
Member
Registered: 2007-08-19
Posts: 144

Re: the most incredible crap script for pacman ever, he eats a ghost...

Okay it really seems to be a pointless script but I'm glad I helped you get it done big_smile

Offline

#3 2010-04-04 09:03:06

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: the most incredible crap script for pacman ever, he eats a ghost...

pointless? big_smile haha

Thanks for the help, i find it fun and useful big_smile

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

#4 2010-04-04 09:47:50

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 121
Website

Re: the most incredible crap script for pacman ever, he eats a ghost...

This looks like fun-I will give it a try.

Offline

#5 2010-04-04 11:33:27

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

Re: the most incredible crap script for pacman ever, he eats a ghost...

after messing with the ascii for a while I decided on a much cleaner approach..

tNDFsag

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

Board footer

Powered by FluxBB