Show workspaces and outputs on initial lemonbar start
This commit is contained in:
@@ -123,7 +123,6 @@ def parse_status():
|
||||
p_lemonbar = subprocess.Popen(config.lemonbar_args, stdin=subprocess.PIPE
|
||||
, stdout=subprocess.PIPE, text=True)
|
||||
|
||||
lemonparser.parse_line('WSPINA1___main INA2___web FOC5___terms INA6___stats ') # TODO modular
|
||||
while True:
|
||||
data = common.parsing_queue.get() # Blocking read
|
||||
if data is None:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user