aboutsummaryrefslogtreecommitdiff
path: root/lynx-urlview-handler
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2025-10-18 17:01:10 +0200
committerPhilip Wittamore <philip@wittamore.com>2025-10-18 17:01:10 +0200
commit681133565ce3c417bec8c06e44dda1812f6a257e (patch)
tree856d89b0650f919490a1f5f1f84c645b4b552e2b /lynx-urlview-handler
parentc6a7d51df19e6dc06f2a120c07619980b865d0ce (diff)
downloadscripts-681133565ce3c417bec8c06e44dda1812f6a257e.tar.gz
scripts-681133565ce3c417bec8c06e44dda1812f6a257e.tar.bz2
scripts-681133565ce3c417bec8c06e44dda1812f6a257e.zip
Diffstat (limited to 'lynx-urlview-handler')
-rwxr-xr-xlynx-urlview-handler7
1 files changed, 7 insertions, 0 deletions
diff --git a/lynx-urlview-handler b/lynx-urlview-handler
new file mode 100755
index 0000000..f5022fb
--- /dev/null
+++ b/lynx-urlview-handler
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+if curl --head --silent "$1" > /dev/null 2>&1; then
+ curl $1 | urlview
+else
+ notify-send "Invalid URL $1"
+fi