aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/pacupgrade
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.local/bin/pacupgrade')
-rwxr-xr-xdotfiles/.local/bin/pacupgrade13
1 files changed, 13 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/pacupgrade b/dotfiles/.local/bin/pacupgrade
new file mode 100755
index 0000000..4aa4512
--- /dev/null
+++ b/dotfiles/.local/bin/pacupgrade
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if pidof pacman; then
+ exit
+fi
+
+touch ~/.cache/pacupdatelive
+killall -41 waybar
+
+sudo pacman -Syu
+
+rm -f ~/.cache/pacupdatelive
+killall -41 waybar