From 4867afeda116fa6170a6b36486a4aadc174bb652 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Fri, 25 Mar 2016 00:29:19 -0500 Subject: [PATCH] Change color_no_updates to None to default to i3bar color If ``statusline`` is not set in ``~/.config/i3/config``, it defaults to ``#ffffff`` (white). Therefore, the default behavior of the updates module in this case is to show white for both ``color_no_updates`` (system is up-to-date) and ``color_working`` (update check in progress). However, if one sets ``statusline`` in their ``~/.config/i3/config``, then the color will be white when the system is up-to-date, forcing the user to manually set ``color_no_updates`` if they would prefer it match their default i3bar color. This commit changes the default value of ``color_no_updates`` to ``None`` so that it matches the default i3bar unless overridden. --- i3pystatus/updates/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/updates/__init__.py b/i3pystatus/updates/__init__.py index 7fd15ac..eee9e90 100644 --- a/i3pystatus/updates/__init__.py +++ b/i3pystatus/updates/__init__.py @@ -65,7 +65,7 @@ class Updates(Module): format_no_updates = None format_working = None color = "#00DD00" - color_no_updates = "#FFFFFF" + color_no_updates = None color_working = None on_leftclick = "run"