mirror of
https://github.com/moparisthebest/ImageDownloader
synced 2024-11-22 01:02:16 -05:00
add wrapper script to open browser or image viewer
This commit is contained in:
parent
e81406b144
commit
285b237606
10
openbrowser.sh
Executable file
10
openbrowser.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
URL=$1
|
||||
BROWSER=firefox
|
||||
JAVA=/usr/lib/jvm/java-8-openjdk/bin/java
|
||||
IMAGE_DOWNLOADER=/home/daniel/Projects/ImageDownloader/target/ImageDownloader-0.1.jar
|
||||
if [ ${URL: -97:1} == "#" ]; then
|
||||
$JAVA -jar $IMAGE_DOWNLOADER $URL | feh -. -
|
||||
else
|
||||
$BROWSER $URL
|
||||
fi
|
Loading…
Reference in New Issue
Block a user