Update diskspace()

Add hdd icon.
This commit is contained in:
yashar-sb-sb 2017-03-09 23:38:31 +03:30 committed by GitHub
parent dfb5bfe71c
commit 3f96102b28

View file

@ -1,7 +1,7 @@
# pylint: disable=C0111,R0903
"""Shows free diskspace, total diskspace and the percentage of free disk space.
-
Parameters:
* disk.warning: Warning threshold in % of disk space (defaults to 80%)
* disk.critical: Critical threshold in % of disk space (defaults ot 90%)
@ -28,7 +28,7 @@ class Module(bumblebee.engine.Module):
cmd="nautilus {}".format(self._path))
def diskspace(self, widget):
return "{} {}/{} ({:05.02f}%)".format(self._path,
return "\uf0a0 {} {}/{} ({:05.02f}%)".format(self._path,
bumblebee.util.bytefmt(self._used),
bumblebee.util.bytefmt(self._size), self._perc
)