You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
353 B
16 lines
353 B
#!/usr/bin/env bash |
|
|
|
# A script to open urls |
|
# For example, open images with sxiv |
|
|
|
# This is necesary becuase environment variables are lost when calling from newsboat for some reason |
|
|
|
url="$1" |
|
browser="${BROWSER:-firefox-developer-edition}" |
|
|
|
case "$url" in |
|
*"//invidio.us/"*) open-youtube "$url"; exit 0 ;; |
|
*) $browser "$url"; exit 0 ;; |
|
esac |
|
|
|
exit 1
|
|
|