Adding i3 support to satellite

There’s a really cool Go application written by avinashbot named satellite, which you can use to update your background from an image downloaded from Himawari-8 or DSCOVR. I was super excited to use it but quickly realized that it didn’t support i3, the window manager I use in Linux.

Now, I have never touched a line of Go until now, but it was a breeze to add i3 support.

All I really needed to do was add these lines to background_linux.go:

Then, down in the switch in Set, add:


[remedios]sina ~ $ satellite -desktop i3
2016/08/20 14:40:45 Starting download…
2016/08/20 14:40:52 Done! Download took 6.906361896s.
2016/08/20 14:40:54 Setting image as background…

The full changes can be seen on the (now closed) Pull Request.