quickshell: notification daemon
This commit is contained in:
@@ -8,16 +8,9 @@ Singleton {
|
||||
|
||||
function show(title, message, timeout = 5000, icon = "", urgency = "normal") {
|
||||
if (icon)
|
||||
action.command = ["notify-send", "-u", urgency, "-i", icon, "-t", timeout.toString(), title, message];
|
||||
Quickshell.execDetached(["notify-send", "-u", urgency, "-i", icon, "-t", timeout.toString(), title, message, "-a", "quickshell"]);
|
||||
else
|
||||
action.command = ["notify-send", "-u", urgency, "-t", timeout.toString(), title, message];
|
||||
action.startDetached();
|
||||
}
|
||||
|
||||
Process {
|
||||
id: action
|
||||
|
||||
running: false
|
||||
Quickshell.execDetached(["notify-send", "-u", urgency, "-t", timeout.toString(), title, message, "-a", "quickshell"]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user