Disk Space Screenlet

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

2
Score 58.0%
Description:

A screenlet that displays free/used space information for selected hard drives, based on the Disk Usage Screenlet by Helder Fraga (aka Whise), which is in turn based on the Disk screenlet by Jonathan Rauprich.

This screenlet adds quite a few new features on top of the original Disk Usage sceenlet. These are:

* Ability to customize colors (it uses two colors, one for when disk usage is above a certain threshold, and one for when disk usage is above the threshold)
* Ability to change the aforementioned threshold value
* Ability to monitor more than one drive using one screenlet (i.e. no need to use 4 screenlets for 4 drives)
* Ability to enter device names (e.g. /dev/sda1) instead of mount points

I've also changed a few features of the Disk Usage screenlet:

* Changed the drive icon with the default drive icon from the Ubuntu Human theme
* The default theme is based on the 'cristal' theme for the original screenlet.
* I moved some stuff around in the interface

Planned features for v0.7

* The ability to customize drive nicknames. For now, the last part of the mount point is displayed (i.e. Dallas for /media/Dallas)
* The ability to use drive icons from the user's icon theme.
Last changelog:

10 years ago

v0.6:
* Major code cleanup, fixing some glitches caused by legacy code.

v0.5:
* NFS (and possibly SAMBA) support
* New themes

v0.4:
* Solved the non-updating screenlet problem
* Added package information so the screenlet installs properly now

v0.3:
* Option added to stack drives horizontally

v0.2:
* Drives now show up in the order they are entered in preferences
* The screenlet now updates its shape properly, so dragging works
* Clicking on drive icons to open the drive in Nautilus has been added as an option

daturna

9 years ago

hello,

I really like your screenlet it fits perfekt to my desktop but after I installed ubuntu karmic I got a problem.

I defined the text color to green (#00ff00) and mostly after rebooting my system the text color is automaticly set to default. I tried so many to fix this but I have no Idea what causes this.

Maybe you can help me.

Could it be a problem whith compiz???

Report

deathknight

10 years ago

I made derived work from this beautiful screenlet.

Disk IO Space Screenlet
http://www.gnome-look.org/content/show.php?content=112989&vote=good&tan=180362

Report

deathknight

10 years ago

Güzel plugin, ama yarım. Belki ben tamamlarım. Teşekkürler Can. :)

Report

deathknight

10 years ago

in v0.6 Doesn't update. It looks you broke timeout() while playing with update_graph()

bugfix for 0.6

cat DiskSpace.diff
Quote:diff -ruN DiskSpace.orig//DiskSpaceScreenlet.py DiskSpace/DiskSpaceScreenlet.py
--- DiskSpace.orig//DiskSpaceScreenlet.py 2009-02-28 03:04:59.000000000 +0200
+++ DiskSpace/DiskSpaceScreenlet.py 2009-09-11 16:33:14.000000000 +0300
@@ -193,6 +193,7 @@
self.__info = self.get_drive_info()
self.recalculate_size()
self.update_graph()
+ return True

def on_draw(self, ctx):
ctx.scale(self.scale, self.scale)

Report

lpin

10 years ago

I have to agree with previous comments, this is an excellent plugin.

Since i have found no way of posting a bug report, i'll chime in here: the list doesn't update when a mountpoint gets mounted/unmounted, only when the mountpoint list is modified. It would be nice to have an option not to hide unmounted devices (show them in gray, perhaps?)

Great work, and thanks!

Report

myk02k

10 years ago

Hey, I just wanted to thank you for creating this screenlet. I've been using it for several months now and is has performed flawlessly, which is rare for many third-party apps out there. Its much more stable than many other screenlets I've tried and I have NEVER experienced any issues/flaws/bugs whatsoever. The only suggestions that I could make to enhance this screenlet's capabilities is to allow for nicknames on the mount points (For instance instead of me having "/" "Windows" and "Secondary" it would be nice to label then as "Linux" "Windows" "Shared Files". Further, it would be nice if it could save what the last reported percent usage so that some may be able to dismount partitions and still know its usage. Thanks again!

Report

myk02k

10 years ago

Hey, I just wanted to thank you for creating this screenlet. I've been using it for several months now and is has performed flawlessly, which is rare for many third-party apps out there. Its much more stable than many other screenlets I've tried and I have NEVER experienced any issues/flaws/bugs whatsoever. The only suggestions that I could make to enhance this screenlet's capabilities is to allow for nicknames on the mount points (For instance instead of me having "/" "Windows" and "Secondary" it would be nice to label then as "Linux" "Windows" "Shared Files". Further, it would be nice if it could save what the last reported percent usage so that some may be able to dismount partitions and still know its usage. Thanks again!

Report

TheWizzard

11 years ago

good idea, but it kinda uses too much CPU. Occasionally it bursts to 30%

Report

lupo74

11 years ago

is possible change the drive icon?

Report

C

cbguder

11 years ago

The drive icon is part of the theme, so you'd have to replace drive.svg in $HOME/.screenlets/DiskSpace/themes/default

However, the included SVG file is quite big, so your new icon might look much smaller when resized.

I want to change the screenlet so that it fetches the correct drive icons from the user's theme/drives, but for now, changing the theme is the only way.

Thanks,

Report

aantn

11 years ago

Hey!

I love the screenlet. I'd like to move it into the Universal Applets Extras branch to replace Whise's old version of the screenlet. (We're trying to round up all applets and place them on bzr in UA-Extras.)

If you're interested, I'll need your launchpad username to add you to the team so that you can commit directly to bzr.

Please see [url=http://forum.compiz-fusion.org/showthread.php?t=8616&highlight=extras]this[/url] and [url=http://forum.compiz-fusion.org/showthread.php?t=8500&highlight=developer]this[/url] for more information. (The first link is slightly outdated.)

Report

ChojinDSL

11 years ago

NFS mountpoints dont seem to work with this screenlet. I used to use conky where it was no problem.

Could you add the function so that even NFS and SAMBA mount points can be displayed and evalued?

Report

dellthinker

11 years ago

This doesnt work, i get this error when trying to install on gDesklets.

"Installation failed

The package could not be installed because it contained no installable files."

Whats even worst there are no instructions on how to install it. Waste of time.

Report

TristanSchmelcher

11 years ago

This screenlet seems to be missing a file needed to work with screenlets version 0.0.10, at least on Ubuntu Gutsy. To fix it you need to add a Screenlet.package file to the DiskSpace directory that contains this:

[Screenlet Package]
Name=DiskSpaceScreenlet
Author=cbguder
Desc=Shows disk space usage
Version=0.2
ApiVersion=0.0.10
Created=2007/11/29

After that it works fine.

Report

mark314

11 years ago

I have a problem with instalation. I added file named Screenlet.package into directory DiskSpace. Then I made a package named Diskspace.tar.gz, bud instalation still does'n work. What's the problem?

Report

kino90

11 years ago

Sorry.. how can I install it? sorry I'm on linux from a week..

Report

TristanSchmelcher

11 years ago

You need to install the Screenlets program for your Linux distribution first. I'm going to assume you're using Ubuntu, since most new Linux users are. You can install the Screenlets program in Accessories->Add/Remove. Once that's done, you download this file, rename it to DiskSpace.tar.gz, and then select it in Accessories->Screenlets->Install Screenlet. There's a problem with it though, see my next post.

Report

Jacksunny

11 years ago

Great job, buddy!

I just find the indication of the used/free space is not immediately understandable, I mean at a very first glance. Ok, maybe it's just me.

I would change the text in something like:

14% of 50GB - (7/43)GB

where the % indicates the portion of used space (well related to the bar displayed below) and the rest gives you the absolute values of used/free space.

Well, it's just an idea...
Peace out.

Report

C

cbguder

11 years ago

Hmm, I guess I can add a formatting string for extra customization?

Report

Jacksunny

11 years ago

Yes! ^_^

Report

lukeen

11 years ago

can you please add an option to place the displays side by side instead of on top of each other?

merry christmas ;)

Report

C

cbguder

11 years ago

Hmm, actually I could use such a feature myself, too. How come I never thought of that before? =)

Anyway, adding that to my To-Do list. =)

Merry christmas,

Report

lukeen

11 years ago

;)

other things that would be very useful (imho):

+ how about other drive icons? or the ability to change it? i would like the gnome default icon
+ option for the background color of the bar
+ option to set the text strings (for other languages and so)

Report

milke

11 years ago

Is it possible that when you click on disk icon, u actually open that drive's mount point ?
would give screenlet more functionality

Report

C

cbguder

11 years ago

Hmm, I should look into that. Maybe I can add it as an optional feature in v0.2.

Report

10 years ago

v0.6:
* Major code cleanup, fixing some glitches caused by legacy code.

v0.5:
* NFS (and possibly SAMBA) support
* New themes

v0.4:
* Solved the non-updating screenlet problem
* Added package information so the screenlet installs properly now

v0.3:
* Option added to stack drives horizontally

v0.2:
* Drives now show up in the order they are entered in preferences
* The screenlet now updates its shape properly, so dragging works
* Clicking on drive icons to open the drive in Nautilus has been added as an option

12345678910
1
product-maker nikore90 Sep 14 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
deathknight
Sep 10 2009
twa022
Jun 20 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
0.6
updated Feb 27 2009
added Nov 28 2007
downloads 24h
0
page views 24h 3