dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

forecast-sky (283B)


      1 #!/bin/sh
      2 
      3 tmpfile=$(mktemp).png
      4 curl --location \
      5 	'http://www.cleardarksky.com/c/AAAP1_NJcsk.gif?c=468010'\
      6 	--output "$tmpfile"
      7 if command -v open >/dev/null 2>&1; then
      8 	open "$tmpfile"
      9 elif command -v xdg-open >/dev/null 2>&1; then
     10 	xdg-open "$tmpfile"
     11 else
     12 	echo "$tmpfile"
     13 fi
     14