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
|
p_lemonbar = subprocess.Popen(config.lemonbar_args, stdin=subprocess.PIPE
|
||||||
, stdout=subprocess.PIPE, text=True)
|
, stdout=subprocess.PIPE, text=True)
|
||||||
|
|
||||||
lemonparser.parse_line('WSPINA1___main INA2___web FOC5___terms INA6___stats ') # TODO modular
|
|
||||||
while True:
|
while True:
|
||||||
data = common.parsing_queue.get() # Blocking read
|
data = common.parsing_queue.get() # Blocking read
|
||||||
if data is None:
|
if data is None:
|
||||||
|
|||||||
@@ -72,13 +72,7 @@ class i3ws(object):
|
|||||||
|
|
||||||
def resetConn(self):
|
def resetConn(self):
|
||||||
self.conn = i3ipc.Connection()
|
self.conn = i3ipc.Connection()
|
||||||
|
self.outputs = self.conn.get_outputs()
|
||||||
# Run call backs once
|
|
||||||
for cb in self.change_callbacks:
|
|
||||||
cb(self)
|
|
||||||
|
|
||||||
for cb in self.focus_callbacks:
|
|
||||||
cb(self)
|
|
||||||
|
|
||||||
self.conn.on('workspace::focus' , self.change)
|
self.conn.on('workspace::focus' , self.change)
|
||||||
self.conn.on('workspace::init' , 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('window::focus' , self.win_focused)
|
||||||
self.conn.on('shutdown' , self.shutdown)
|
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):
|
def enterMain(self):
|
||||||
try:
|
try:
|
||||||
# Locking call
|
# Locking call
|
||||||
|
|||||||
Reference in New Issue
Block a user