diff --git a/.config/polybar/config b/.config/polybar/config index 2d654a18..5319c8fd 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -406,7 +406,7 @@ label-warn-foreground = ${res/colors.alert} [module/update-arch] inherit = template/module 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 ] format-prefix = " " format-prefix-foreground = ${res/colors.alert-dark} diff --git a/.config/polybar/update-arch.sh b/.config/polybar/update-arch.sh deleted file mode 100755 index 51dfec94..00000000 --- a/.config/polybar/update-arch.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -uname -r | grep -q "ARCH" || exit -CHECKUPDATES_DB=/tmp/$(uuidgen)/ -numupdates=$(checkupdates | wc -l) -echo $numupdates