blob: 25c16c326acc37ffa66e463d00d765c5798373e3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# opens url in browser: intended use with st
# copied from: https://st.suckless.org/patches/externalpipe/linkgrabber.dash
regex='(((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]'
url=$(grep -Po "$regex" | dmenu -p "Go:" -w "$WINDOWID") || exit
"$BROWSER" "$url"
|