Hide low-use disk to declutter
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
3968f6203d
commit
0ceaa13942
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,7 @@ import sys
|
|||
from block import *
|
||||
|
||||
CRIT = 90.0
|
||||
HIDE = 70.0
|
||||
MOUNT_BLACKLIST = ['/dev', '/efi', '/proc', '/run', '/sys', '/tmp']
|
||||
FS_BLACKLIST = ['//', 'cgroup', 'dev',
|
||||
'fusectl', 'overlay', 'proc', 'run', 'sys', 'tmpfs']
|
||||
|
@ -48,6 +49,9 @@ class Disk(Block):
|
|||
if usage > CRIT:
|
||||
color = '#dd0000'
|
||||
|
||||
if usage < HIDE:
|
||||
continue
|
||||
|
||||
strings.append('<span color="#8FAAFC">{}</span>: <span color="{}">{:.0f}%</span>'.format(
|
||||
mount,
|
||||
color,
|
||||
|
|
Loading…
Reference in a new issue