fix: instantly spawn bar

This commit is contained in:
2026-05-04 00:00:11 +02:00
parent 0cd58f4a1f
commit 6343c91fca
5 changed files with 14 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ from .services.screenrec import ScreenrecService
tray = SystemTray(name="system-tray", spacing=4)
i3 = get_i3_connection()
get_i3_connection()
dummy = Window(visible=False)
finder = FuzzyWindowFinder()
@@ -147,15 +147,9 @@ def spawn_bars():
if i == 0 and bar.notmuch:
notmuch_widget = bar.notmuch
return False
def main():
if i3.ready:
spawn_bars()
else:
i3.connect("notify::ready", lambda *_: spawn_bars())
spawn_bars()
app.run()