From 722a096c1e6390e92f65698cf32bf1942fab2978 Mon Sep 17 00:00:00 2001 From: Makesesama Date: Thu, 1 May 2025 23:42:24 +0200 Subject: [PATCH] river: better workspace --- bar/bar.css | 7 ++++--- bar/river/service.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bar/bar.css b/bar/bar.css index a467910..d6772f1 100644 --- a/bar/bar.css +++ b/bar/bar.css @@ -78,14 +78,15 @@ button { background-color: var(--ws-urgent); } +#workspaces>button.empty { + background-color: var(--ws-empty); +} + #workspaces>button.active { padding: 0px 32px; background-color: var(--ws-active); } -#workspaces>button.empty { - background-color: var(--ws-empty); -} #date-time, diff --git a/bar/river/service.py b/bar/river/service.py index f995aa3..184b427 100644 --- a/bar/river/service.py +++ b/bar/river/service.py @@ -191,7 +191,7 @@ class River(Service): # Main event loop logger.info("[RiverService] Entering main event loop") while True: - display.roundtrip() + display.dispatch(block=True) time.sleep(0.01) # Small sleep to prevent CPU spinning except Exception as e: