diff options
Diffstat (limited to 'notification/notify_darwin.go')
-rw-r--r-- | notification/notify_darwin.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/notification/notify_darwin.go b/notification/notify_darwin.go index 1d9cbbc..1e09ef8 100644 --- a/notification/notify_darwin.go +++ b/notification/notify_darwin.go @@ -31,7 +31,7 @@ func init() { TerminalNotifierAvailable = true } -func Send(title, text string, critical bool) error { +func Send(title, text string, critical, sound bool) error { if TerminalNotifierAvailable { args := []string{"-title", "gomuks", "-subtitle", title, "-message", text} if critical { @@ -39,6 +39,9 @@ func Send(title, text string, critical bool) error { } else { args = append(args, "-timeout", "4") } + if sound { + args = append(args, "-sound", "default") + } // if len(iconPath) > 0 { // args = append(args, "-appIcon", iconPath) // } |