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`