From 9548c4411938397b4f2d8a7b49b46cdc6aca0a3b Mon Sep 17 00:00:00 2001 From: S0lll0s Date: Sun, 9 Feb 2014 12:10:18 +0100 Subject: [PATCH] Fix highlighting groups for workspaces segment --- powerline/segments/i3wm.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/powerline/segments/i3wm.py b/powerline/segments/i3wm.py index e57f304e..04115444 100644 --- a/powerline/segments/i3wm.py +++ b/powerline/segments/i3wm.py @@ -4,10 +4,11 @@ from powerline.theme import requires_segment_info import i3 def calcgrp( w ): - group = ["workspace"] + group = [] + if w['focused']: group.append( 'w_focused' ) if w['urgent']: group.append( 'w_urgent' ) if w['visible']: group.append( 'w_visible' ) - if w['focused']: return "w_focused" + group.append( 'workspace' ) return group def workspaces( pl ):