Update some commands and change terminal to st

This commit is contained in:
2021-05-29 19:03:23 +01:00
parent bc8d62e90b
commit b17345ecdf
12 changed files with 88 additions and 48 deletions

8
.local/bin/cron/checkup Normal file → Executable file
View File

@@ -2,9 +2,7 @@
# Syncs repositories and downloads updates, meant to be run as a cronjob.
ping -q -c 1 example.org > /dev/null || exit
notify-send "📦 Repository Sync" "Checking for package updates..."
notify-send " Repository Sync" "Checking for package updates..."
sudo pacman -Syyuw --noconfirm || notify-send "Error downloading updates.
Check your internet connection, if pacman is already running, or run update manually to see errors."
@@ -12,7 +10,7 @@ pkill -RTMIN+8 "${STATUSBAR:-dwmblocks}"
if pacman -Qu | grep -v "\[ignored\]"
then
notify-send "🎁 Repository Sync" "Updates available. Click statusbar icon (📦) for update."
notify-send " Repository Sync" "Updates available. Click statusbar icon () for update."
else
notify-send "📦 Repository Sync" "Sync complete. No new packages for update."
notify-send " Repository Sync" "Sync complete. No new packages for update."
fi

0
.local/bin/cron/crontog Normal file → Executable file
View File

4
.local/bin/cron/newsup Normal file → Executable file
View File

@@ -3,13 +3,11 @@
# Set as a cron job to check for new RSS entries for newsboat.
# If newsboat is open, sends it an "R" key to refresh.
ping -q -c 1 example.org > /dev/null || exit
/usr/bin/notify-send "📰 Updating RSS feeds..."
pgrep -f newsboat$ && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit
echo 🔃 > /tmp/newsupdate
echo > /tmp/newsupdate
pkill -RTMIN+6 "${STATUSBAR:-dwmblocks}"
/usr/bin/newsboat -x reload
rm -f /tmp/newsupdate