aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/barpacstatus
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-04-06 02:30:09 +0300
committerYaroslav <contact@yaroslavps.com>2020-04-06 02:30:09 +0300
commitcbfd974f652a12c601a95ea6d364549f45cb87e3 (patch)
tree06ad8bd90f653102065d4028d64a274f6d9bcd39 /dotfiles/.local/bin/barpacstatus
parente351037f1e0f48a2a1602a07d376980c9e595091 (diff)
downloadswayrice-cbfd974f652a12c601a95ea6d364549f45cb87e3.tar.gz
swayrice-cbfd974f652a12c601a95ea6d364549f45cb87e3.zip
improved script for pacman package download cron job; waybar improvements
Diffstat (limited to 'dotfiles/.local/bin/barpacstatus')
-rwxr-xr-xdotfiles/.local/bin/barpacstatus16
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