summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-06-22 03:07:01 +0200
committerJokler <jokler@protonmail.com>2020-06-22 03:07:01 +0200
commit05269b73d70e2609ab91f8a0bce5a90addc7c983 (patch)
tree3d8162a47766cf7ab52d9d7ffe4f38f2a3279424
parente516330af6cc5af668d31ee16971e084551cf3ba (diff)
downloaddotfiles-05269b73d70e2609ab91f8a0bce5a90addc7c983.tar.gz
dotfiles-05269b73d70e2609ab91f8a0bce5a90addc7c983.zip
Polybar: Add checkupdates script
-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