diff options
| author | Jokler <jokler@protonmail.com> | 2020-06-22 03:07:01 +0200 |
|---|---|---|
| committer | Jokler <jokler@protonmail.com> | 2020-06-22 03:07:01 +0200 |
| commit | 05269b73d70e2609ab91f8a0bce5a90addc7c983 (patch) | |
| tree | 3d8162a47766cf7ab52d9d7ffe4f38f2a3279424 /.config/polybar/checkupdates.sh | |
| parent | e516330af6cc5af668d31ee16971e084551cf3ba (diff) | |
| download | dotfiles-05269b73d70e2609ab91f8a0bce5a90addc7c983.tar.gz dotfiles-05269b73d70e2609ab91f8a0bce5a90addc7c983.zip | |
Polybar: Add checkupdates script
Diffstat (limited to '.config/polybar/checkupdates.sh')
| -rwxr-xr-x | .config/polybar/checkupdates.sh | 7 |
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 |
