Skip to content

Instantly share code, notes, and snippets.

@iNPUTmice
Last active June 9, 2016 12:02
Show Gist options
  • Save iNPUTmice/b5667a61d17bffb33c23 to your computer and use it in GitHub Desktop.
Save iNPUTmice/b5667a61d17bffb33c23 to your computer and use it in GitHub Desktop.
#!/bin/bash
URL=$1
BROWSER=firefox
JAVA=/usr/lib/jvm/java-8-openjdk/bin/java
IMAGE_DOWNLOADER=/home/daniel/Projects/ImageDownloader/t
if [ ${URL: -97:1} == "#" ]; then
$JAVA -jar $IMAGE_DOWNLOADER $URL | feh -. -
else
$BROWSER $URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment