aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/rssget
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-07-30 20:28:04 +0300
committerawy <awy@awy.one>2025-07-30 20:28:04 +0300
commitbd77fbce81efc16fc91dd7cc9d9807e27d70d064 (patch)
tree1af91789a564e8390563e134dec809b7f1f6c5cc /.local/bin/rssget
parentbde37c9e56a339b7970f4b300488f053406000ef (diff)
downloadhyprdots-bd77fbce81efc16fc91dd7cc9d9807e27d70d064.tar.gz
rofi
Diffstat (limited to '.local/bin/rssget')
-rwxr-xr-x.local/bin/rssget4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/rssget b/.local/bin/rssget
index 45064b7..5406d33 100755
--- a/.local/bin/rssget
+++ b/.local/bin/rssget
@@ -4,7 +4,7 @@
# also find hidden RSS feeds on various websites, namely Youtube, Reddit,
# Vimeo, Github, Gitlab and Medium. Gets site url as $1 or (if not present)
# from X clipboard. Gets tags as $2. If it finds more than one feed, calls
-# mew for the user to choose which one to add. I have bound it to a keyboard
+# rofi -dmenu for the user to choose which one to add. I have bound it to a keyboard
# shortcut so i copy a site link and easily add its feed to the reader.
# Inspired by and based on the logic of this extension:
@@ -109,7 +109,7 @@ else
list="$(getlink "$url")"
fi
-[ "$(echo "$list" | wc -l)" -eq 1 ] && chosen_link="$list" || chosen_link=$(printf '%s\n' "${list[@]}" | mew -p "Choose a feed:")
+[ "$(echo "$list" | wc -l)" -eq 1 ] && chosen_link="$list" || chosen_link=$(printf '%s\n' "${list[@]}" | rofi -dmenu -p "Choose a feed:")
tags="$2"
ifinstalled rssadd && rssadd "$chosen_link" "$tags"
echo "$chosen_link" "$tags"