lemonbar: update workspaces to newer version of i3ipc.

Also temporary placeholders in conky for battery and screen brightness
when on desktop
This commit is contained in:
2019-11-03 21:31:23 +01:00
parent 174d4b1124
commit 2d8eb5b31c
4 changed files with 12 additions and 12 deletions

View File

@@ -270,13 +270,13 @@ class i3Module(LemonModule):
# Find out which output the workspace is on
output = None # TODO actually use this information
for output_ in i3ws.outputs:
if output_['name'] == workspace['output']:
if output_.name == workspace.output:
output = output_
break
if not output:
continue
status = i3ws.state.get_state(workspace, output) # FOC or INA
name = workspace['name'] # e.g. 5 terms
name = workspace.name # e.g. 5 terms
current = ''.join([parser.block(click=('i3-msg workspace' + name))
, name, parser.block(click='')])
if status == "FOC":