Polybar: Move the rest of the script into the config

Because why the hell not. It was only four lines anyway.
This commit is contained in:
Salt 2018-01-01 20:39:34 -06:00
parent d5d60411cd
commit 6edfff43b6
2 changed files with 1 additions and 6 deletions

View File

@ -406,7 +406,7 @@ label-warn-foreground = ${res/colors.alert}
[module/update-arch] [module/update-arch]
inherit = template/module inherit = template/module
type = custom/script type = custom/script
exec = $HOME/.config/polybar/update-arch.sh exec = echo `checkupdates | wc -l`
exec-if = wget -q --spider http://www.startpage.com/ && uname -r | grep -q "ARCH" && [ `checkupdates | wc -l` != 0 ] exec-if = wget -q --spider http://www.startpage.com/ && uname -r | grep -q "ARCH" && [ `checkupdates | wc -l` != 0 ]
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${res/colors.alert-dark} format-prefix-foreground = ${res/colors.alert-dark}

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
uname -r | grep -q "ARCH" || exit
CHECKUPDATES_DB=/tmp/$(uuidgen)/
numupdates=$(checkupdates | wc -l)
echo $numupdates