i3pacman update
This commit is contained in:
parent
de9157c982
commit
6083bc4d3f
2 changed files with 13 additions and 3 deletions
|
@ -7,9 +7,9 @@
|
||||||
# When clicked, it will run an upgrade via `yay`. (`yay` required, duh.)
|
# When clicked, it will run an upgrade via `yay`. (`yay` required, duh.)
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) $TERMINAL -e yay -Syu && pacman -Qu | wc -l > ~/.pacupgrnum && pkill -RTMIN+8 i3blocks ;;
|
1) $TERMINAL -e "popupgrade" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
pacman -Qu | wc -l | sed -e '/^0$/d' > ~/.pacupgrnum && pkill -RTMIN+8 i3blocks
|
yay -Qum | wc -l > ~/.pacupgrnum && pkill -RTMIN+8 i3blocks
|
||||||
|
|
||||||
sed -e "/^$/d" ~/.pacupgrnum
|
sed -e "/^0$/d" ~/.pacupgrnum
|
||||||
|
|
10
.scripts/popupgrade
Executable file
10
.scripts/popupgrade
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
printf "Beginning upgrade.\\n"
|
||||||
|
|
||||||
|
yay -Syu
|
||||||
|
pacman -Qu | wc -l > ~/.pacupgrnum
|
||||||
|
pkill -RTMIN+8 i3blocks
|
||||||
|
|
||||||
|
printf "\\nUpgrade complete.\\nPress <Enter> to exit window.\\n\\n"
|
||||||
|
read -r
|
Loading…
Reference in a new issue