today I was running out of disk space. I did not pay attention to my conkey infopanels. I think, the information is too small and I don’t want to add another conkey to my desktop.
What I am looking for is a possibility to see my free disk space in the tint2 panel. Has anyboy an idea how to show the used or free diskspace in tint2? If a warning comes when a specified limit is reached this would be perfect.
… I wouldn’t be surprised if the option is already there and I not able to find it.
Search the forum for weather and you’ll find something I crafted up for Tint2 panel to show weather. If you create a small script with df -kh command inside (like napcok wrote), make it executable and put that into panel added (see weather script panel) it should show you the desired info.
Problem with df -kh it shows all, better use somthing like df -k /dev/sda1 | tail -1 | awk ‘{print $4}’ that give free space in MB’s.
NB. If you replace {print $4} with {print $5} it should show the free %.
The executor is invisible - no reason to waste space on the panel.
Executes every 30 minutes (Interval = 1800).
And if the specified disk usage limit is exceeded ( > 90%)
shows notification.
The reason why I was running out of disk space has nothing to do with Linux. It is my fault. I test a lot of software. Sometimes I did not remove the installed packages or dependencies were not removed. And so the space of my HDD is decreasing.
This Executor work fine! Exactly what I was looking for. No waste of space in the panel and a message that I can not ignore.