feat(services): streamline DBus menu caching and notification handling
- Consolidate logger disabling, cache empty menus with TTL, and move name resolution to a dedicated resolver to reduce duplication and improve performance
This commit is contained in:
6 files changed
+161
-75
No files matched your search
@@ -67,7 +67,7 @@ class KeyboardLayout(Service):
|
||||
def _sync_with_hyprland(self):
|
||||
try:
|
||||
result = run_command([HYPRCTL_BIN, "devices", "-j"])
|
||||
devices = json.loads(result)
|
||||
devices = json.loads(result.stdout)
|
||||
keyboards = devices.get("keyboards", [])
|
||||
for k in keyboards:
|
||||
if k.get("main"):
|
||||
|
||||
Reference in new issue
Block a user