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

9
.local/bin/tools/rssadd Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null &&
notify-send "That doesn't look like a full URL." && exit
RSSFILE="$HOME/.config/newsboat/urls"
if awk '{print $1}' "$RSSFILE" | grep "^$1$" >/dev/null; then
notify-send "You already have this RSS feed."
else
echo "$1" >> "$RSSFILE" && notify-send "RSS feed added."
fi