diff options
Diffstat (limited to 'dotfiles/.local/bin/barpacstatus')
-rwxr-xr-x | dotfiles/.local/bin/barpacstatus | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/barpacstatus b/dotfiles/.local/bin/barpacstatus new file mode 100755 index 0000000..3a05525 --- /dev/null +++ b/dotfiles/.local/bin/barpacstatus @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ -f ~/.cache/pacsynclive ]; then + echo "syncing" + exit +fi +if [ -f ~/.cache/pacupgradelive ]; then + echo "installing" + exit +fi + +upno=$(pacman -Qu | wc -l) + +if [ $upno -gt 0 ]; then + echo $upno +fi |