aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notify/service.go
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-19 09:53:00 +0200
committerDanilo M. <danix@danix.xyz>2026-10-19 09:53:00 +0200
commit47c2469aeb0e8f3ed40b995a560ab95ca1eb1074 (patch)
tree320f6e1d1b888014f265c2a5413a89f84965b4bc /internal/notify/service.go
parent7a4d76c5db3e7668796486a0a4d9db583f89b8e5 (diff)
downloadnotifyd-47c2469aeb0e8f3ed40b995a560ab95ca1eb1074.tar.gz
notifyd-47c2469aeb0e8f3ed40b995a560ab95ca1eb1074.zip
feat(notify): publish each notification's sound and suppress-sound
The sound-name lookup uses config.json's soundTheme, default freedesktop. The quickshell settings page mirrors that key to gsettings; the daemon only reads the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/notify/service.go')
-rw-r--r--internal/notify/service.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/notify/service.go b/internal/notify/service.go
index 1b1c89b..3ad3c75 100644
--- a/internal/notify/service.go
+++ b/internal/notify/service.go
@@ -116,6 +116,7 @@ func (s *Service) Notify(appName string, replacesID uint32, appIcon, summary, bo
now := time.Now().UnixMilli()
s.mu.Lock()
timeouts := s.cfg.Timeouts
+ theme := s.cfg.SoundTheme
s.mu.Unlock()
ms := EffectiveTimeoutMS(expireTimeout, u, timeouts)
// Spec priority is image-data > image-path > the deprecated icon_data. A
@@ -131,6 +132,7 @@ func (s *Service) Notify(appName string, replacesID uint32, appIcon, summary, bo
Actions: ParseActions(actions),
Created: now,
}
+ n.Sound, n.Silent = SoundFromHints(hints, theme)
var raw *RawImage
if r, ok := ImageDataFromHints(hints); ok {
raw = r