summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/i3pacman8
1 files changed, 8 insertions, 0 deletions
diff --git a/.scripts/i3pacman b/.scripts/i3pacman
new file mode 100755
index 0000000..02f7136
--- /dev/null
+++ b/.scripts/i3pacman
@@ -0,0 +1,8 @@
+#!/bin/bash
+case $BLOCK_BUTTON in
+ 1) $TERMINAL -e sudo pacman -Syu && pacman -Qu | wc -l > ~/.larbs/.pacupgrade && pkill -RTMIN+8 i3blocks ;;
+esac
+
+pacman -Qu | wc -l | sed -e '/^0$/d' > ~/.larbs/.pacupgrade && pkill -RTMIN+8 i3blocks
+
+cat ~/.larbs/.pacupgrade | sed -e "/^$/d;s/^/📦 /g"