Fix docstring for i3wm.workspaces segment

This commit is contained in:
S0lll0s 2014-02-09 11:10:49 +01:00
parent 21319fc8d2
commit 7d89ff2b49
1 changed files with 2 additions and 2 deletions

View File

@ -7,12 +7,12 @@ def calcgrp( w ):
group = ["workspace"]
if w['urgent']: group.append( 'w_urgent' )
if w['visible']: group.append( 'w_visible' )
if w['focused']: return "w_focused" #group.append( 'w_focused' )
if w['focused']: return "w_focused"
return group
def workspaces( pl ):
'''Return workspace list
Highlight groups used: ``workspace, visible, focused, urgent``
Highlight groups used: ``workspace``, ``w_visible``, ``w_focused``, ``w_urgent``
'''
return [ {'contents': w['name'], 'highlight_group': calcgrp( w )} for w in i3.get_workspaces() ]