Fix docstring for i3wm.workspaces segment
This commit is contained in:
parent
21319fc8d2
commit
7d89ff2b49
|
@ -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() ]
|
||||
|
|
Loading…
Reference in New Issue