Show workspaces and outputs on initial lemonbar start

This commit is contained in:
kuben
2019-09-19 09:15:40 +02:00
parent a86415f264
commit 9f5078611c
2 changed files with 5 additions and 8 deletions

View File

@@ -72,13 +72,7 @@ class i3ws(object):
def resetConn(self):
self.conn = i3ipc.Connection()
# Run call backs once
for cb in self.change_callbacks:
cb(self)
for cb in self.focus_callbacks:
cb(self)
self.outputs = self.conn.get_outputs()
self.conn.on('workspace::focus' , self.change)
self.conn.on('workspace::init' , self.change)
@@ -86,6 +80,10 @@ class i3ws(object):
self.conn.on('window::focus' , self.win_focused)
self.conn.on('shutdown' , self.shutdown)
# Run call backs once by calling these functions
self.change(self.conn, None)
self.win_focused(self.conn, None)
def enterMain(self):
try:
# Locking call