Re: [request filled] Conky script to get the number of pacman updates

Kooothor wrote:

Xyne wrote:

I have some other code snippets to display more info if you want more than just the number of packages.

Thanks, but I'd like to keep it simple

Don't worry, I was just thinking of some simple one-line sentence depending on whether there are updatable packages (e.g. "nothing to update", "1 package waiting for update", "x packages waiting for update").

Re: [request filled] Conky script to get the number of pacman updates

k3ttc4r wrote:

somehow this script always shows me "nothing to update" until i 'manually' run pacman -Qu in a terminal, which renders it pretty useless

Running "pacman -Qu" doesn't update anything. You must mean "pacman -Sy". The script isn't meant to update the database for you. You need to use cron to do that. Just add a script to /etc/cron.hourly so it gets updated, e.g.

#!/bin/bash
pacman -Sy 1>/dev/null 2>&1

You could also use rebase to update the database if you want to avoid unnecessary writing to the disk.

Btw, for anyone interesting in the script that I posted above, take a look at paconky.

Re: [request filled] Conky script to get the number of pacman updates

Technically i'm not necrobumping right now, anyway. I can't get the cronjob to work. I added the script to the folder /etc/cron.hourly but it doesn't update... Cocky stays at 0 untill I update pacman myself.