voidrice/.scripts/i3pacman
2018-08-09 19:33:05 -04:00

8 lines
261 B
Bash
Executable file

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