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/config_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'internal/notify/config_test.go') diff --git a/internal/notify/config_test.go b/internal/notify/config_test.go index 818e88f..52781ac 100644 --- a/internal/notify/config_test.go +++ b/internal/notify/config_test.go @@ -63,3 +63,15 @@ func TestLoadConfigClamps(t *testing.T) { t.Errorf("got %+v", got) } } + +func TestLoadConfigSoundTheme(t *testing.T) { + if got := LoadConfig(writeConfig(t, `{"soundTheme": "mine"}`)).SoundTheme; got != "mine" { + t.Errorf("soundTheme = %q, want mine", got) + } + if got := LoadConfig(writeConfig(t, `{"soundTheme": ""}`)).SoundTheme; got != "freedesktop" { + t.Errorf("empty soundTheme = %q, want freedesktop", got) + } + if got := LoadConfig(writeConfig(t, `{"soundTheme": 4, "liveCap": 3}`)); got.SoundTheme != "freedesktop" || got.LiveCap != 3 { + t.Errorf("got %+v", got) + } +} -- cgit v1.2.3