diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-04-06 02:30:09 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-04-06 02:30:09 +0300 |
commit | cbfd974f652a12c601a95ea6d364549f45cb87e3 (patch) | |
tree | 06ad8bd90f653102065d4028d64a274f6d9bcd39 /dotfiles/.local/bin/pacupgrade | |
parent | e351037f1e0f48a2a1602a07d376980c9e595091 (diff) | |
download | swayrice-cbfd974f652a12c601a95ea6d364549f45cb87e3.tar.gz swayrice-cbfd974f652a12c601a95ea6d364549f45cb87e3.zip |
improved script for pacman package download cron job; waybar improvements
Diffstat (limited to 'dotfiles/.local/bin/pacupgrade')
-rwxr-xr-x | dotfiles/.local/bin/pacupgrade | 13 |
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 |