1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

adding all important config files

This commit is contained in:
tiynger
2019-09-13 10:51:43 +02:00
parent c8c69ce9ae
commit 9c32c55e5a
54 changed files with 5317 additions and 0 deletions

16
.local/bin/cron/newsup Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
# 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 1.1.1.1 > /dev/null || exit
/usr/bin/notify-send "📰 Updating RSS feeds..."
pgrep -x newsboat >/dev/null && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit
echo 🔃 > /tmp/newsupdate
pkill -RTMIN+6 i3blocks
/usr/bin/newsboat -x reload
rm -f /tmp/newsupdate
pkill -RTMIN+6 i3blocks
/usr/bin/notify-send "📰 RSS feed update complete."