From 8a866a8082a8debb356b257df1af6ce3becbd1a6 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 30 Oct 2024 09:52:28 -0500 Subject: [PATCH] add expiration to notifications --- src/lib.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.nim b/src/lib.nim index d06934f..7afffeb 100644 --- a/src/lib.nim +++ b/src/lib.nim @@ -5,7 +5,8 @@ export tables import yaml proc notify*(message: string) = - var cmd = "notify-send --app-name=hyprman --transient hyprman \"" + var cmd = "notify-send --app-name=hyprman --transient hyprman --expire-time 10000" + cmd.add "\"" cmd.add message cmd.add "\"" discard execCmd(cmd) @@ -31,8 +32,7 @@ func pickIcon*( class: string ): string = for k, v in c.classes: - if class in k: - result = v + if class in k: result = v if result == "": result = c.`default-icon`