From 88f120cb544296f4c760546a204f1e2268a2e5dd Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 30 Nov 2026 11:01:09 +0100 Subject: feat(dashboard): drop the action icons row The screenshot and lock buttons went unused; the keyboard is faster. The actions module keeps only the hyprlock watcher that sleeps and wakes the tablet, under the same name since keystone's module toggle uses it. [dashboard] actions is gone from the config and its validation. Co-Authored-By: Claude Opus 5.5 --- deckit/config.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'deckit/config.py') diff --git a/deckit/config.py b/deckit/config.py index 6ce0cba..e20bc00 100644 --- a/deckit/config.py +++ b/deckit/config.py @@ -26,8 +26,6 @@ ROOT = Path(__file__).resolve().parent.parent MONITOR_NAME = re.compile(r"[A-Za-z0-9_-]{1,32}") WIFI_ADDR = re.compile(r"[A-Za-z0-9.-]{1,253}:[0-9]{1,5}") DESKTOP_ID = re.compile(r"[A-Za-z0-9._-]{1,255}") -# The dashboard's action buttons; deckit/modules/actions.py maps each to its command. -ACTION_IDS = ("screenshot", "lock") def user_config_path() -> Path: @@ -56,9 +54,6 @@ def config_error(cfg: dict) -> str | None: apps = cfg.get("launch", {}).get("apps", []) if not isinstance(apps, list) or not all(isinstance(a, str) and DESKTOP_ID.fullmatch(a) for a in apps): return "launch.apps must be a list of desktop ids, like \"kitty\"" - acts = cfg.get("dashboard", {}).get("actions", []) - if not isinstance(acts, list) or not all(a in ACTION_IDS for a in acts): - return f"dashboard.actions must be a list of: {', '.join(ACTION_IDS)}" return None -- cgit v1.2.3