You are not logged in.
Hi. I'm having problems with showing available package updates in my conky layout. I tried to follow instructions from archwiki https://wiki.archlinux.org/index.php/Co … nformation but none of the scripts seemed to work correctly, but instead they always show 'System is up to date' even though 'pacman -Qu' shows multiple packages available for update.
Following https://bbs.archlinux.org/viewtopic.php?id=37284 my conky has (I changed 'python' -> 'python2' so script compiles):
${texeci 10800 python2 /home/laite/.config/awesome/conky/packages_python.py}
Actually, I just noticed that last post in that topic seems to have the same problem than me (https://bbs.archlinux.org/viewtopic.php … 74#p863474)
Does anybody know how to get this working or maybe some other way to show updates in conky? I already tried all the scripts from wiki with no luck.
Offline
I'm not using conky at this time, but when I was using it, I had a cronjob which was synchronizing pacman's db. Something like:
pacman -Syy 2>&1 > /dev/null
I was getting the results in conky using this simple bash script:
#!/bin/bash
_pacPackages=$(pacman -Qu | wc -l)
if [ $_pacPackages -eq 0 ];
then
echo "No new packages";
elif [ $_pacPackages -eq 1 ];
then
echo "1 new package";
else
echo "$_pacPackages new packages";
fi
exit 0
Hope that helps.
Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog
Offline
I'm not using conky at this time, but when I was using it, I had a cronjob which was synchronizing pacman's db. Something like:
Hope that helps.
Thank you, this helped. I got it working with conky now.
Offline
https://github.com/kooothor/Scripts/blo … n-conky.sh
just leavin' this here...
ktr
Offline
https://github.com/kooothor/Scripts/blo … n-conky.sh
just leavin' this here...
Thanks
If somebody wants to know, here is my (very slightly) edited bash script:
#!/bin/bash
_pacPackages=$(pacman -Qu | wc -l)
if [ $_pacPackages -eq 0 ];
then
echo "\${color #ffffff}Your system is up to date.";
elif [ $_pacPackages -eq 1 ];
then
echo "\${color #ffaa00}1 new package";
else
echo "\${color #ffaa00}$_pacPackages new packages";
fi
exit 0
and conky:
${execpi 7200 sh /home/laite/.config/awesome/conky/package.sh}
Also, I have script updating packages in cron/hourly:
#!/bin/sh
pacman -Sy
Offline
ViruSzZ wrote:I'm not using conky at this time, but when I was using it, I had a cronjob which was synchronizing pacman's db. Something like:
Hope that helps.Thank you, this helped. I got it working with conky now.
No prob Man.
Take care
Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog
Offline