Merge 7997143ea0beda29dec32fbdf71ad84042b611c9 into cbe88333413b9e9dc66af963339ce2e7b9eb014c

This commit is contained in:
termlimit 2018-08-09 23:33:25 +00:00 committed by GitHub
commit d370799615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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