quickshell & script: implemented recording

This commit is contained in:
2025-10-16 23:48:19 +02:00
parent fe38cb5069
commit 753cec4bdc
13 changed files with 343 additions and 21 deletions

View File

@@ -6,11 +6,11 @@ pragma Singleton
Singleton {
id: root
function show(title, message, timeout = 5000, icon = "", urgency = "normal") {
function show(title, message, icon = "", urgency = "normal") {
if (icon)
Quickshell.execDetached(["notify-send", "-u", urgency, "-i", icon, "-t", timeout.toString(), title, message, "-a", "quickshell"]);
Quickshell.execDetached(["notify-send", "-u", urgency, "-i", icon, title, message, "-a", "quickshell"]);
else
Quickshell.execDetached(["notify-send", "-u", urgency, "-t", timeout.toString(), title, message, "-a", "quickshell"]);
Quickshell.execDetached(["notify-send", "-u", urgency, title, message, "-a", "quickshell"]);
}
}