Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
nat geo wallpaper #1
Love this script. 2 suggestions though
I needed to add parens to the math expression for calculating disk free before it worked for me.
Without the parens, this is what I got:
I added parens around 1st expression
Second thing is I keep my /home and / on 2 partitions. The space check is on / and the files are stored in ~. I hardcoded mine to work (checking space in /home/steve) but this could easily be more general.
I may tinker with this and get it working for win7.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Glad you liked it! It was an itch I have been needing to scratch :-)
On the first issue: yeah looks like I just did that wrong. It should be: " (gb_total - gb_free) / gb_total * 100". I was missing parens and should have been dividing by gb_total. Fixed in commit 839bb58.
On your second issue: commit 74fa9e8 fixes this, now only checking for free space in picture_dir. So you can just use that and change picture_dir = "/home/steve" (or "~" actually, I set it up to handle that).
I would love a working non-Linux version! Please send to me if you go that route and I'll add to the blog post.