From 47c2469aeb0e8f3ed40b995a560ab95ca1eb1074 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 19 Oct 2026 09:53:00 +0200 Subject: 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 --- internal/notify/service.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/notify/service.go') 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 -- cgit v1.2.3