diff --git a/powerline/bindings/i3/powerline-i3.py b/powerline/bindings/i3/powerline-i3.py index 69ad1ffd..d6d84f59 100755 --- a/powerline/bindings/i3/powerline-i3.py +++ b/powerline/bindings/i3/powerline-i3.py @@ -16,7 +16,7 @@ if __name__ == '__main__': if len(sys.argv) > 1: name = sys.argv[1] - powerline = Powerline(name, renderer_module='i3bgbar') + powerline = Powerline(name, renderer_module='i3bar') powerline.update_renderer() interval = 0.5 diff --git a/powerline/renderers/i3bgbar.py b/powerline/renderers/i3bar.py similarity index 82% rename from powerline/renderers/i3bgbar.py rename to powerline/renderers/i3bar.py index 55e1c3d4..2e0ef9b3 100644 --- a/powerline/renderers/i3bgbar.py +++ b/powerline/renderers/i3bar.py @@ -4,8 +4,11 @@ from powerline.renderer import Renderer import json -class i3bgbarRenderer(Renderer): - '''i3bgbar Segment Renderer''' +class I3barRenderer(Renderer): + '''I3bar Segment Renderer. + + Currently works only for i3bgbar (i3 bar with custom patches). + ''' @staticmethod def hlstyle(*args, **kwargs): @@ -13,8 +16,6 @@ class i3bgbarRenderer(Renderer): return '' def hl(self, contents, fg=None, bg=None, attr=None): - '''Highlight a segment.''' - segment = { "full_text": contents, "separator": False, @@ -31,4 +32,4 @@ class i3bgbarRenderer(Renderer): return json.dumps(segment) + ",\n" -renderer = i3bgbarRenderer +renderer = I3barRenderer