aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tools/mode.toml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-19 10:23:45 +0200
committerDanilo M. <danix@danix.xyz>2026-10-19 10:23:45 +0200
commit31f1c15112748eecbdc3ad33891b0c3629504fe7 (patch)
treee674ef5fe890e64c274029d86a30956876173f1d /examples/tools/mode.toml
parented70f032e30ae13485610a9027371d22d3cab14e (diff)
downloaddesktop-assistant-31f1c15112748eecbdc3ad33891b0c3629504fe7.tar.gz
desktop-assistant-31f1c15112748eecbdc3ad33891b0c3629504fe7.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'examples/tools/mode.toml')
-rw-r--r--examples/tools/mode.toml11
1 files changed, 11 insertions, 0 deletions
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."