aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/linkgrabber.sh
blob: ab90f6c49f462e9a352f2a9eb882837a11efd7c5 (plain)
1
2
3
4
#!/bin/sh
regex='(((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]'
url=$(grep -Po "$regex" | dmenu -p "Go:" -w "$WINDOWID" -l 10) || exit
brave "$url"