diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-12-05 13:38:14 -0500 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-12-05 13:38:14 -0500 |
| commit | 29b1c791f6e319cdab828cee5f491ca1c38e41d1 (patch) | |
| tree | be9d9d43d150f0b72f72e4e37cc43bde0e10b72e /.local/bin/add2rss | |
| parent | 5849e2ad7323f086bd6edf221b29e3f0b2b7cbd3 (diff) | |
Some New Configuration Tools
Diffstat (limited to '.local/bin/add2rss')
| -rwxr-xr-x | .local/bin/add2rss | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/.local/bin/add2rss b/.local/bin/add2rss deleted file mode 100755 index ab29362..0000000 --- a/.local/bin/add2rss +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -RSSFILE=~/.config/newsboat/urls - -if test -n "$1"; -then - URL=$1 -elif test ! -t 0; -then - URL=$(cat < /dev/stdin) -else - URL=$(xclip -o clipboard) - if test -n "$URL"; - then - notify-send "add2rss: copied $URL from clipboard" - else - notify-send "add2rss: no input" - exit - fi -fi - -if test -n "$2"; -then - URL="$URL \"$2\"" -fi - -if test -n "$(grep $URL $RSSFILE)"; -then - notify-send "add2rss: You already added this feed" -else - echo "$URL" >> $RSSFILE - notify-send "add2rss: Added" -fi - |
