summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVon Random <von@vdrandom.org>2017-01-13 13:36:09 +0300
committerVon Random <von@vdrandom.org>2017-01-13 13:36:09 +0300
commit31ece2995a5ece873aeff5bea17642480c1aa9ca (patch)
tree03487c3355d5d0b7fe2ddc79aed22e03d51aa37e
parentd921f17f1ca59fd91bc2d8f5c6a7aa016ea6388f (diff)
use a proper tool to check for updates
-rw-r--r--plugins/pacman.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pacman.py b/plugins/pacman.py
index b6eba34..5789d7c 100644
--- a/plugins/pacman.py
+++ b/plugins/pacman.py
@@ -5,7 +5,7 @@ import subprocess
class PluginThread(plugins.PluginThreadCommon):
def __init__(self, section, config):
super(PluginThread, self).__init__(section, config)
- self.freq = config.getint(section, 'freq', fallback=180)
+ self.freq = config.getint(section, 'freq', fallback=15)
self.format_status(0)
def format_status(self, count):
@@ -18,5 +18,5 @@ class PluginThread(plugins.PluginThreadCommon):
self.status['urgent'] = False
def main(self):
- updates = subprocess.getoutput('/usr/bin/pacman -Sup').count("\n")
+ updates = subprocess.getoutput('/usr/bin/pacman -Qu').count("\n")
self.format_status(updates)