From 3f96102b28044c82a46f725818a5d3fcb1f10b0b Mon Sep 17 00:00:00 2001 From: yashar-sb-sb Date: Thu, 9 Mar 2017 23:38:31 +0330 Subject: [PATCH] Update diskspace() Add hdd icon. --- bumblebee/modules/disk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bumblebee/modules/disk.py b/bumblebee/modules/disk.py index 73ca54c..d48b3ef 100644 --- a/bumblebee/modules/disk.py +++ b/bumblebee/modules/disk.py @@ -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 )