mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 03:02:49 +00:00
Fix default packages command
This commit is contained in:
parent
299b497748
commit
aa08206e4b
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ AudioScrollSpeed: 5
|
||||||
# Command that is run to check if there are out-of-date packages.
|
# Command that is run to check if there are out-of-date packages.
|
||||||
# The script should return *ONLY* a number. If it doesn't output a number, updates are no longer checked.
|
# The script should return *ONLY* a number. If it doesn't output a number, updates are no longer checked.
|
||||||
# Default value is applicable for Arch Linux. (See src/Config.h for explanation on the default command)
|
# Default value is applicable for Arch Linux. (See src/Config.h for explanation on the default command)
|
||||||
CheckPackagesCommand: pac="$(checkupdates)"; if [ $? -eq 127 ] ; then exit 127; fi; echo $pac | wc -l
|
CheckPackagesCommand: pac="$(checkupdates)"; if [ $? -eq 127 ] ; then exit 127; fi; echo -n $pac | wc -l
|
||||||
|
|
||||||
# How often to check for updates. In seconds
|
# How often to check for updates. In seconds
|
||||||
CheckUpdateInterval: 300
|
CheckUpdateInterval: 300
|
||||||
|
|
|
@ -17,7 +17,7 @@ public:
|
||||||
// Script that returns how many packages are out-of-date. The script should only print a number!
|
// Script that returns how many packages are out-of-date. The script should only print a number!
|
||||||
// The default script runs checkupdates, and forcefully exits when checkupdates is not found, so gBar can disable the package widget.
|
// The default script runs checkupdates, and forcefully exits when checkupdates is not found, so gBar can disable the package widget.
|
||||||
// "checkupdates | wc -l" would always return 0 on stdout, which gBar accepts
|
// "checkupdates | wc -l" would always return 0 on stdout, which gBar accepts
|
||||||
std::string checkPackagesCommand = "pac=\"$(checkupdates)\"; if [ $? -eq 127 ] ; then exit 127; fi; echo $pac | wc -l";
|
std::string checkPackagesCommand = "pac=\"$(checkupdates)\"; if [ $? -eq 127 ] ; then exit 127; fi; echo -n $pac | wc -l";
|
||||||
|
|
||||||
bool centerTime = true;
|
bool centerTime = true;
|
||||||
bool audioRevealer = false;
|
bool audioRevealer = false;
|
||||||
|
|
Loading…
Reference in a new issue