diff options
| author | Andrew <saintruler@gmail.com> | 2020-06-05 17:02:06 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-06-05 17:02:06 +0400 |
| commit | ea8ff6d7638cdd1f36cc978f1734759158b969b0 (patch) | |
| tree | 18893c91594a2d58bb6757f592a076c5496e300e /.local/bin/statusbar/popupgrade | |
Initial commit
Diffstat (limited to '.local/bin/statusbar/popupgrade')
| -rwxr-xr-x | .local/bin/statusbar/popupgrade | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.local/bin/statusbar/popupgrade b/.local/bin/statusbar/popupgrade new file mode 100755 index 0000000..9d62b31 --- /dev/null +++ b/.local/bin/statusbar/popupgrade @@ -0,0 +1,14 @@ +#!/bin/sh + +printf "Packages to upgrade:\\n" +pacman -Qu +sudo pacman -Syu +pkill -RTMIN+3 "${STATUSBAR:-dwmblocks}" + +printf "\\nAUR packages to upgrade:\\n" +yay -Qau +shellprompt "Upgrade AUR packages?" && yay -Sau +pkill -RTMIN+3 "${STATUSBAR:-dwmblocks}" + +printf "\\nUpgrade complete.\\nPress <Enter> to exit window.\\n\\n" +read -r |