aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-07-21 16:54:47 +0300
committereug-vs <eug-vs@keemail.me>2021-07-21 16:54:47 +0300
commit0fb0039433c0777027f9f9fc63d6ec77117a7f48 (patch)
treeafc75dc189780353dace51cba46b578ea7db9329 /scripts
parent21334ded09d4def098b0db76f1ddb1f1825e6c96 (diff)
downloaddotfiles-0fb0039433c0777027f9f9fc63d6ec77117a7f48.tar.gz
feat: move zsh and git packages to env
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/.local/bin/linkgrabber.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/.local/bin/linkgrabber.sh b/scripts/.local/bin/linkgrabber.sh
new file mode 100755
index 0000000..ab90f6c
--- /dev/null
+++ b/scripts/.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"