From c96d119b0e3b2550c709bc789f495c660599403c Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Thu, 7 Oct 2021 15:39:29 +0200 Subject: [PATCH] [core/config] add autohide to configuration file make it possible to configure a list of automatically hidden modules in the configuration file (+ add documentation for it). fixes #822 --- bumblebee_status/core/config.py | 2 +- docs/features.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bumblebee_status/core/config.py b/bumblebee_status/core/config.py index b5fd5ef..69a4ac6 100644 --- a/bumblebee_status/core/config.py +++ b/bumblebee_status/core/config.py @@ -328,7 +328,7 @@ class Config(util.store.Store): """ def autohide(self, name): - return name in self.__args.autohide + return name in self.__args.autohide or self.get("autohide") """Returns which modules should be hidden if they are in state error diff --git a/docs/features.rst b/docs/features.rst index f167033..3c7fe6e 100644 --- a/docs/features.rst +++ b/docs/features.rst @@ -160,6 +160,7 @@ Configuration files have the following format: [core] modules = + autohid = theme = [module-parameters]