summaryrefslogtreecommitdiffstats
path: root/.config/polybar/checkupdates.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/polybar/checkupdates.sh')
-rwxr-xr-x.config/polybar/checkupdates.sh7
1 files changed, 7 insertions, 0 deletions
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