diff options
author | jack <[email protected]> | 2023-11-28 11:36:29 -0700 |
---|---|---|
committer | jack <[email protected]> | 2023-11-28 11:36:29 -0700 |
commit | d7d1f3fbf52f916807f06b88fbb2f732cc5b5b80 (patch) | |
tree | 4ba314ffb170db15575b1a565d65e7cfde230b62 /st-urlhandler | |
parent | 6809f2a1a81b70385d653a942ec673192daa41b7 (diff) | |
download | st-d7d1f3fbf52f916807f06b88fbb2f732cc5b5b80.tar.gz st-d7d1f3fbf52f916807f06b88fbb2f732cc5b5b80.zip |
fixup
Diffstat (limited to 'st-urlhandler')
-rwxr-xr-x | st-urlhandler | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/st-urlhandler b/st-urlhandler deleted file mode 100755 index 0d39dd5..0000000 --- a/st-urlhandler +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -urlregex="(((http|https)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./@$&%?$\#=_~-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)" - -# First remove linebreaks and mutt sidebars: -urls="$(sed 's/.*│//g' | tr -d '\n' | - grep -aEo "$urlregex" | # grep only urls as defined above. - uniq | # Ignore neighboring duplicates. - sed 's/^www./http:\/\/www\./g')" - -[ -z "$urls" ] && exit - -chosen="$(echo "$urls" | dmenu -i -p 'Follow which url?' -l 10)" - -setsid xdg-open "$chosen" >/dev/null 2>&1 & |