aboutsummaryrefslogtreecommitdiffstats
path: root/deckit/config.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-30 11:01:09 +0100
committerDanilo M. <danix@danix.xyz>2026-11-30 11:01:09 +0100
commit88f120cb544296f4c760546a204f1e2268a2e5dd (patch)
treebe14896616b3733556f3bc10a1406fc3c84d6044 /deckit/config.py
parent96355cff09db091f5251ae851c46b8d1dd67f7a0 (diff)
downloaddeck-it-88f120cb544296f4c760546a204f1e2268a2e5dd.tar.gz
deck-it-88f120cb544296f4c760546a204f1e2268a2e5dd.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'deckit/config.py')
-rw-r--r--deckit/config.py5
1 files changed, 0 insertions, 5 deletions
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