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:
parent
d5d60411cd
commit
6edfff43b6
@ -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}
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
uname -r | grep -q "ARCH" || exit
|
|
||||||
CHECKUPDATES_DB=/tmp/$(uuidgen)/
|
|
||||||
numupdates=$(checkupdates | wc -l)
|
|
||||||
echo $numupdates
|
|
Loading…
Reference in New Issue
Block a user