aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/status/StatusPage.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-15 11:25:50 +0200
committerDanilo M. <danix@danix.xyz>2026-10-15 11:25:50 +0200
commit98fc6036ee817a92810e060c80d48aa6a936a1ab (patch)
treee05b1b724463de10649180615ad32bb6094f84e0 /desktop/modules/status/StatusPage.qml
parente22d2ccee82b829875fe343cf1be48975174b054 (diff)
downloadquickshell-98fc6036ee817a92810e060c80d48aa6a936a1ab.tar.gz
quickshell-98fc6036ee817a92810e060c80d48aa6a936a1ab.zip
feat(status): quiet mode mutes the Claude and opencode sounds
A new registry mode, status.quiet, with a row on the status page. Both tools will play their sounds through notify-sound, which asks statusctl and plays nothing while quiet is on, so their popups stay and only the sound goes. Presentation sets quiet and restores it afterwards, like dnd and nolock: a sound during a call or a game is what quiet is for. notify-sound ignores any argument it has no sound for, because the opencode notifier runs its command on every event, session_started and user_message included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/status/StatusPage.qml')
-rw-r--r--desktop/modules/status/StatusPage.qml16
1 files changed, 15 insertions, 1 deletions
diff --git a/desktop/modules/status/StatusPage.qml b/desktop/modules/status/StatusPage.qml
index 7da7a0d..e0de86b 100644
--- a/desktop/modules/status/StatusPage.qml
+++ b/desktop/modules/status/StatusPage.qml
@@ -37,7 +37,7 @@ Column {
width: page.width
mode: "presentation"
label: "Presentation"
- description: "Do not disturb, no screen lock, breaktimer paused."
+ description: "Do not disturb, quiet, no screen lock, breaktimer paused."
value: Status.presentation
}
@@ -47,6 +47,20 @@ Column {
color: Qt.alpha(Theme.text, 0.08)
}
+ StatusRow {
+ width: page.width
+ mode: "quiet"
+ label: "Quiet"
+ description: "Mutes Claude and opencode sounds. Popups still appear."
+ value: Status.quiet
+ }
+
+ Rectangle {
+ width: page.width
+ height: 1
+ color: Qt.alpha(Theme.text, 0.08)
+ }
+
LockRow {
width: page.width
}