aboutsummaryrefslogtreecommitdiffstats
path: root/shared/Status.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-16 13:28:21 +0100
committerDanilo M. <danix@danix.xyz>2026-11-16 13:28:21 +0100
commita3fa6524b744ea062ea0197bb3a0fec7ec9c6b54 (patch)
tree32b0dfb8709ce46a0903d7ce916658047b3db617 /shared/Status.qml
parentacc837d722d6905b47f0b673b84b02345867fb6e (diff)
downloadquickshell-a3fa6524b744ea062ea0197bb3a0fec7ec9c6b54.tar.gz
quickshell-a3fa6524b744ea062ea0197bb3a0fec7ec9c6b54.zip
status: nolamp mode and the agent-lamp forward
nolamp keeps agent-lamp's bulb dark; notify-sound forwards opencode's event and session to agent-lamp before the quiet check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'shared/Status.qml')
-rw-r--r--shared/Status.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/Status.qml b/shared/Status.qml
index f32cd35..ab45e99 100644
--- a/shared/Status.qml
+++ b/shared/Status.qml
@@ -43,9 +43,13 @@ Singleton {
// sound scripts read the file through statusctl, so this is only the
// drawer's view of it.
readonly property bool quiet: quietFile.value
+ // Keeps agent-lamp's bulb dark; agent-lamp reads the file itself, so
+ // this is only the drawer's view of it.
+ readonly property bool nolamp: nolampFile.value
readonly property int activeCount: (root.dnd ? 1 : 0) + (root.presentation ? 1 : 0)
+ (root.nolock ? 1 : 0) + (root.quiet ? 1 : 0)
+ + (root.nolamp ? 1 : 0)
// Set once by shell.qml. IdleInhibitor does nothing with a null window,
// and the singleton has no window of its own to offer.
@@ -81,6 +85,8 @@ Singleton {
nolockFile.write(on);
} else if (name === "quiet") {
quietFile.write(on);
+ } else if (name === "nolamp") {
+ nolampFile.write(on);
}
}
@@ -97,6 +103,7 @@ Singleton {
else if (name === "presentation") root.setMode("presentation", !root.presentation);
else if (name === "nolock") root.setMode("nolock", !root.nolock);
else if (name === "quiet") root.setMode("quiet", !root.quiet);
+ else if (name === "nolamp") root.setMode("nolamp", !root.nolamp);
}
// The detector calls this every poll; a write on an unchanged value would
@@ -224,6 +231,7 @@ Singleton {
ModeFile { id: presFile; path: root.dir + "/status.presentation" }
ModeFile { id: nolockFile; path: root.dir + "/status.nolock" }
ModeFile { id: quietFile; path: root.dir + "/status.quiet" }
+ ModeFile { id: nolampFile; path: root.dir + "/status.nolamp" }
// Written only by the game detector above, never by statusctl.
ModeFile { id: gamingFile; path: root.dir + "/status.gaming" }
}