diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-10-18 17:01:10 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-10-18 17:01:10 +0200 |
commit | 681133565ce3c417bec8c06e44dda1812f6a257e (patch) | |
tree | 856d89b0650f919490a1f5f1f84c645b4b552e2b /lynx-urlview-handler | |
parent | c6a7d51df19e6dc06f2a120c07619980b865d0ce (diff) | |
download | scripts-master.tar.gz scripts-master.tar.bz2 scripts-master.zip |
Diffstat (limited to 'lynx-urlview-handler')
-rwxr-xr-x | lynx-urlview-handler | 7 |
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 |