From 6edfff43b6139fa352a0aae7639a64c4d387d80e Mon Sep 17 00:00:00 2001 From: Salt Date: Mon, 1 Jan 2018 20:39:34 -0600 Subject: [PATCH] Polybar: Move the rest of the script into the config Because why the hell not. It was only four lines anyway. --- .config/polybar/config | 2 +- .config/polybar/update-arch.sh | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100755 .config/polybar/update-arch.sh 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