Fix highlighting groups for workspaces segment

This commit is contained in:
S0lll0s 2014-02-09 12:10:18 +01:00
parent 8cb11d8915
commit 9548c44119
1 changed files with 3 additions and 2 deletions

View File

@ -4,10 +4,11 @@ from powerline.theme import requires_segment_info
import i3 import i3
def calcgrp( w ): def calcgrp( w ):
group = ["workspace"] group = []
if w['focused']: group.append( 'w_focused' )
if w['urgent']: group.append( 'w_urgent' ) if w['urgent']: group.append( 'w_urgent' )
if w['visible']: group.append( 'w_visible' ) if w['visible']: group.append( 'w_visible' )
if w['focused']: return "w_focused" group.append( 'workspace' )
return group return group
def workspaces( pl ): def workspaces( pl ):