i3blocks changes, pacman module added

This commit is contained in:
Luke Smith
2018-07-03 10:54:50 -04:00
parent 4ef3772537
commit 542c505796
2 changed files with 16 additions and 2 deletions

8
.scripts/i3pacman Executable file
View File

@@ -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"