From 3967dafd93b8bd0ef612da16536854f08ed970bc Mon Sep 17 00:00:00 2001 From: Martinez Date: Mon, 10 Oct 2016 11:03:02 +0200 Subject: [PATCH] color the letter of a btrfs storage pool --- libexec/render.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libexec/render.py b/libexec/render.py index c6862b4..8d440c9 100755 --- a/libexec/render.py +++ b/libexec/render.py @@ -22,6 +22,7 @@ COLOR_TERM_SCREEN = 27 COLOR_CLOCK = 27 COLOR_CLOCK_DELTA = 11 COLOR_MEMSWAP = 7 +COLOR_SPACE_BTRFS = 12 COLOR_SPACE_OK = 2 COLOR_SPACE_WARN = 3 COLOR_SPACE_ERROR = 1 @@ -617,7 +618,9 @@ class StatsPart(Part): self.fragments.append(" |") first_mountpoint = False + if type == "btrfs": self.fragments.append(style_color(COLOR_SPACE_BTRFS)) self.fragments.append(short_name) + if type == "btrfs": self.fragments.append(style_reset()) self.fragments.append(style_bold()) self.fragments.append(style_color(settings.get_space_color(stor_free, stor_total))) stor_free_si = si_number(stor_free)