[core] Add "autohide" for distraction-free programming
Add a new parameter "-a|--autohide" that allows you to specify a list of module names (or aliases) that will be hidden from the bar *unless* their state is either warning or critical.
This commit is contained in:
parent
44a50c0b36
commit
7b07ef538a
2 changed files with 8 additions and 0 deletions
|
@ -63,6 +63,8 @@ def create_parser():
|
|||
help="Location of the debug log file")
|
||||
parser.add_argument("-i", "--iconset", default="auto",
|
||||
help="Specify the name of an iconset to use (overrides theme default)")
|
||||
parser.add_argument("-a", "--autohide", nargs="+", default=[],
|
||||
help="Specify a list of modules to hide when not in warning/error state")
|
||||
|
||||
return parser
|
||||
|
||||
|
@ -108,4 +110,7 @@ class Config(bumblebee.store.Store):
|
|||
def logfile(self):
|
||||
return os.path.expanduser(self._args.logfile)
|
||||
|
||||
def autohide(self):
|
||||
return self._args.autohide
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue