upgradable number moved to home

This commit is contained in:
Luke Smith 2018-08-04 14:16:29 -04:00
parent e90cfeff52
commit f163eceb68
2 changed files with 3 additions and 4 deletions

View file

@ -1 +0,0 @@

View file

@ -1,8 +1,8 @@
#!/bin/bash
case $BLOCK_BUTTON in
1) $TERMINAL -e sudo pacman -Syu && pacman -Qu | wc -l > ~/.larbs/.pacupgrade && pkill -RTMIN+8 i3blocks ;;
1) $TERMINAL -e sudo pacman -Syu && pacman -Qu | wc -l > ~/.pacupgrnum && pkill -RTMIN+8 i3blocks ;;
esac
pacman -Qu | wc -l | sed -e '/^0$/d' > ~/.larbs/.pacupgrade && pkill -RTMIN+8 i3blocks
pacman -Qu | wc -l | sed -e '/^0$/d' > ~/.pacupgrnum && pkill -RTMIN+8 i3blocks
cat ~/.larbs/.pacupgrade | sed -e "/^$/d"
cat ~/.larbs/.pacupgrnum | sed -e "/^$/d"