From 31f1c15112748eecbdc3ad33891b0c3629504fe7 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 19 Oct 2026 10:23:45 +0200 Subject: mode tool: read and set the desktop modes dnd, presentation, nolock and quiet through statusctl. The output is read back after a set, so a set that did not land is not reported as done, and a running game's hold on presentation is named. test-mode.sh checks it against a scratch runtime dir. Co-Authored-By: Claude Opus 5.5 --- examples/tools/mode.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/tools/mode.toml (limited to 'examples/tools/mode.toml') diff --git a/examples/tools/mode.toml b/examples/tools/mode.toml new file mode 100644 index 0000000..2fb981e --- /dev/null +++ b/examples/tools/mode.toml @@ -0,0 +1,11 @@ +description = "Desktop modes: dnd (do not disturb), presentation (calls, screen sharing), nolock (screen does not lock), quiet (no notification sounds). Read one, or turn it on or off. Changes it immediately; say what changed." +command = ["mode.sh", "{mode}", "{on}"] +timeout = 5 + +[params.mode] +type = "string" +description = "dnd, presentation, nolock or quiet" + +[params.on] +type = "string" +description = "1 to turn on, 0 to turn off. Empty to only read it." -- cgit v1.2.3