mirror of https://github.com/nicolargo/glances.git
Add disable background option in glances.conf file - #3113
This commit is contained in:
parent
c70eb857ba
commit
079f926eb1
|
|
@ -31,8 +31,14 @@ history_size=1200
|
|||
#left_menu=network,wifi,connections,ports,diskio,fs,irq,folders,raid,smart,sensors,now
|
||||
# Limit the number of processes to display (in the WebUI)
|
||||
#max_processes_display=25
|
||||
# Options for WebUI
|
||||
#------------------
|
||||
#
|
||||
# Specifics options for TUI
|
||||
#--------------------------
|
||||
# Disable background color
|
||||
#disable_bg=True
|
||||
#
|
||||
# Specifics options for WebUI
|
||||
#----------------------------
|
||||
# Set URL prefix for the WebUI and the API
|
||||
# Example: url_prefix=/glances/ => http://localhost/glances/
|
||||
# Note: The final / is mandatory
|
||||
|
|
|
|||
|
|
@ -203,6 +203,8 @@ class _GlancesCurses:
|
|||
)
|
||||
# Set the left sidebar list
|
||||
self._left_sidebar = config.get_list_value('outputs', 'left_menu', default=self._left_sidebar)
|
||||
# Background color
|
||||
self.args.disable_bg = config.get_bool_value('outputs', 'disable_bg', default=self.args.disable_bg)
|
||||
|
||||
def _right_sidebar(self):
|
||||
return [
|
||||
|
|
|
|||
Loading…
Reference in New Issue