Add disable background option in glances.conf file - #3113

This commit is contained in:
nicolargo 2025-03-02 17:32:45 +01:00
parent c70eb857ba
commit 079f926eb1
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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 [