From 808c46f5518ab8090c67035046b5b086ad278182 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sun, 16 Feb 2020 14:54:20 +0100 Subject: [PATCH] [core/theme] Add separator-block-width --- core/output.py | 1 + core/theme.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/core/output.py b/core/output.py index c372586..af2b535 100644 --- a/core/output.py +++ b/core/output.py @@ -48,6 +48,7 @@ class i3(object): 'color': self._theme.fg(widget), 'background': self._theme.bg(widget), 'separator': self._theme.default_separators(), + 'separator_block_width': self._theme.separator_block_width(), }) core.event.trigger('next-widget') return widgets diff --git a/core/theme.py b/core/theme.py index 36f3cc3..473f11b 100644 --- a/core/theme.py +++ b/core/theme.py @@ -39,6 +39,9 @@ class Theme(object): def default_separators(self, widget=None): return self.__get(widget, 'default-separators', True) + def separator_block_width(self, widget=None): + return self.__get(widget, 'separator-block-width', 0) + def __start(self): self.__widget_count = 0