hyprdots

my dotfiles
git clone https://git.awy.one/hyprdots.git
Log | Files | Refs | README | LICENSE

commit b0eee88f14e0dd30403ce69ea7874941575159e1
parent 3a6b1715a67ca3781c9e634679cdd34ded046a78
Author: awy <awy@awy.one>
Date:   Thu, 10 Apr 2025 23:12:41 +0300

rssget

Diffstat:
M.local/bin/rssget | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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 -# dmenu for the user to choose which one to add. I have bound it to a keyboard +# wmenu 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: @@ -82,7 +82,7 @@ getMediumRss () { if [ -n "$1" ] ; then url="$1" else - url="$(xclip -selection clipboard -o)" + url="$(wl-paste)" [ -z "$url" ] && echo "usage: $0 url 'tag1 tag2 tag3'" && exit 1 fi @@ -109,7 +109,7 @@ else list="$(getlink "$url")" fi -[ "$(echo "$list" | wc -l)" -eq 1 ] && chosen_link="$list" || chosen_link=$(printf '%s\n' "${list[@]}" | dmenu -p "Choose a feed:") +[ "$(echo "$list" | wc -l)" -eq 1 ] && chosen_link="$list" || chosen_link=$(printf '%s\n' "${list[@]}" | wmenu -p "Choose a feed:") tags="$2" ifinstalled rssadd && rssadd "$chosen_link" "$tags" echo "$chosen_link" "$tags"