]> git.rmz.io Git - dotfiles.git/commitdiff
use external pacmandb to check for new packages
authorSamir Benmendil <samir.benmendil@gmail.com>
Mon, 1 Jul 2013 07:09:32 +0000 (09:09 +0200)
committerSamir Benmendil <samir.benmendil@gmail.com>
Mon, 1 Jul 2013 07:09:32 +0000 (09:09 +0200)
add the following to your crontab:
*/10 * * * * mkdir -p /tmp/pactmp && fakeroot pacman -Sy --dbpath
   /tmp/pactmp
not even sure if it works though... no new packages to test it with

conkyrc

diff --git a/conkyrc b/conkyrc
index 1fdb0d7391851fd6414391fd0f352f5ef9c1264d..2d980e0652b981a4d4051445d1d8d9917941760b 100644 (file)
--- a/conkyrc
+++ b/conkyrc
@@ -56,7 +56,7 @@ ${font Droid Sans:style=Bold:size=12}${color 75D1FF}SYSTEM${color 1B71CC}$hr${co
 Kernel: ${alignr}${kernel}
 Uptime: ${alignr}${uptime}
 # |--Updates
 Kernel: ${alignr}${kernel}
 Uptime: ${alignr}${uptime}
 # |--Updates
-Updates: ${alignr}${font Droid Sans:style=Bold:size=9}${execi 10800 pacman -Qu | wc -l}${font} Packages
+Updates: ${alignr}${font Droid Sans:style=Bold:size=9}${execi 600 pacman -Qqu --dbpath /tmp/pactmp | wc -l }${font} Packages
 
 # |--CPU
 ${font Droid Sans:style=Bold:size=12}${color 75D1FF}CPU${color 1B71CC}$hr${color}${font}
 
 # |--CPU
 ${font Droid Sans:style=Bold:size=12}${color 75D1FF}CPU${color 1B71CC}$hr${color}${font}