aboutsummaryrefslogtreecommitdiff
path: root/lynx-urlview-handler
blob: f5022fb04f9d62bf301d86e2cd5584a99dabe040 (plain)
1
2
3
4
5
6
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