diff options
author | eug-vs <eug-vs@keemail.me> | 2021-07-22 09:55:24 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-07-22 09:55:24 +0300 |
commit | e29c2ae94666914aa2bae2bcf48bfc28545d47b4 (patch) | |
tree | 33a193bbeb665a7036fe1fc53e9bfcb92a6db14e /env/.local/bin/linkgrabber.sh | |
parent | 0fb0039433c0777027f9f9fc63d6ec77117a7f48 (diff) | |
download | dotfiles-e29c2ae94666914aa2bae2bcf48bfc28545d47b4.tar.gz |
refactor: distribute scripts across packages
Diffstat (limited to 'env/.local/bin/linkgrabber.sh')
-rwxr-xr-x | env/.local/bin/linkgrabber.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/env/.local/bin/linkgrabber.sh b/env/.local/bin/linkgrabber.sh new file mode 100755 index 0000000..ab90f6c --- /dev/null +++ b/env/.local/bin/linkgrabber.sh @@ -0,0 +1,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" |