From 6083bc4d3fb8f1b43d58d65202eb299fa19b9b1b Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 5 Oct 2018 21:43:10 -0400 Subject: [PATCH] i3pacman update --- .scripts/i3pacman | 6 +++--- .scripts/popupgrade | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100755 .scripts/popupgrade diff --git a/.scripts/i3pacman b/.scripts/i3pacman index bf1b3cc..f1aae76 100755 --- a/.scripts/i3pacman +++ b/.scripts/i3pacman @@ -7,9 +7,9 @@ # When clicked, it will run an upgrade via `yay`. (`yay` required, duh.) case $BLOCK_BUTTON in - 1) $TERMINAL -e yay -Syu && pacman -Qu | wc -l > ~/.pacupgrnum && pkill -RTMIN+8 i3blocks ;; + 1) $TERMINAL -e "popupgrade" ;; 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 diff --git a/.scripts/popupgrade b/.scripts/popupgrade new file mode 100755 index 0000000..739fcb7 --- /dev/null +++ b/.scripts/popupgrade @@ -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 to exit window.\\n\\n" +read -r