aboutsummaryrefslogtreecommitdiff
path: root/notification
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-03-23 18:16:40 +0200
committerTulir Asokan <tulir@maunium.net>2018-03-23 18:16:40 +0200
commit997948ccad0ddd8e7ed2e87cbef1df10e14a3354 (patch)
tree192ba653765d6400bad5d5f9529b2a1800a7e461 /notification
parent76cfbecc09ce527e9868840b27ac1068b010f824 (diff)
Adjust macOS notification durations
Diffstat (limited to 'notification')
-rw-r--r--notification/notify_darwin.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/notification/notify_darwin.go b/notification/notify_darwin.go
index f7a2d89..1d9cbbc 100644
--- a/notification/notify_darwin.go
+++ b/notification/notify_darwin.go
@@ -35,7 +35,9 @@ func Send(title, text string, critical bool) error {
if TerminalNotifierAvailable {
args := []string{"-title", "gomuks", "-subtitle", title, "-message", text}
if critical {
- args = append(args, "-timeout", "30")
+ args = append(args, "-timeout", "15")
+ } else {
+ args = append(args, "-timeout", "4")
}
// if len(iconPath) > 0 {
// args = append(args, "-appIcon", iconPath)