Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not sure whether "proud" is the right adjective, but that batch file I wrote when I was 12 or 13 which moves all images from the Desktop into a folder called "images" has been the single most useful thing I've ever written.


This is actually one of the few types of examples that I think fit here. Most of the other people are just posting their side projects. When I clicked this I was expecting some quick bash/batch/python/etc. scripts that do useful things.


One less useful thing for you: https://onli.github.io/izulu/. It is a bash script that changes the background of your desktop according to the weather at your locations, and can show the temperature and forecast.

Doesn't have much functional value, but it was easy to write (though over the years it needed some care, mostly thanks to closing weather APIs) and it is a small simple thing I use almost every day, as it is in my autostart.


That looks sweet! Is there a Windows version?


Thanks. Sorry, Windows is not supported. It is written in Bash, Windows was not a target at that time. It might work with https://msdn.microsoft.com/en-us/commandline/wsl/about, but probably not since it also uses imagemagick to paint on the images, and xml_twig_tools as well as jq to interpret the api output. And it would need to detect that it is running on Windows to change the desktop background with the proper command, if that is even possible.


Perhaps the tools here might suit then? https://github.com/skx/sysadmin-util




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: