add expiration to notifications
This commit is contained in:
parent
952d79d368
commit
8a866a8082
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,8 @@ export tables
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
proc notify*(message: string) =
|
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 message
|
||||||
cmd.add "\""
|
cmd.add "\""
|
||||||
discard execCmd(cmd)
|
discard execCmd(cmd)
|
||||||
|
@ -31,8 +32,7 @@ func pickIcon*(
|
||||||
class: string
|
class: string
|
||||||
): string =
|
): string =
|
||||||
for k, v in c.classes:
|
for k, v in c.classes:
|
||||||
if class in k:
|
if class in k: result = v
|
||||||
result = v
|
|
||||||
if result == "":
|
if result == "":
|
||||||
result = c.`default-icon`
|
result = c.`default-icon`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue