From 05269b73d70e2609ab91f8a0bce5a90addc7c983 Mon Sep 17 00:00:00 2001 From: Jokler Date: Mon, 22 Jun 2020 03:07:01 +0200 Subject: Polybar: Add checkupdates script --- .config/polybar/checkupdates.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 .config/polybar/checkupdates.sh diff --git a/.config/polybar/checkupdates.sh b/.config/polybar/checkupdates.sh new file mode 100755 index 0000000..1ecefdd --- /dev/null +++ b/.config/polybar/checkupdates.sh @@ -0,0 +1,7 @@ +#!/usr/bin/sh + +update_count=$(checkupdates+aur | wc -l) +if [ $update_count -gt 0 ] +then + printf "%s %s\n" $update_count "Updates available" +fi -- cgit v1.2.3-70-g09d2