switch to zsh

This commit is contained in:
2026-03-26 07:35:16 +01:00
parent d14538742a
commit b09c760ffc
23 changed files with 591 additions and 17 deletions
@@ -18,7 +18,7 @@ UProgressExpand {
onClicked: (mouse) => {
WriteClipboard.write(displayText);
SendNotification.show("Copied to clipboard", displayText);
SendNotification.show("Copied to clipboard", displayText, true);
}
onRightClicked: {
@@ -6,11 +6,17 @@ pragma Singleton
Singleton {
id: root
function show(title, message, icon = "", urgency = "normal") {
function show(title, message, nohistory = false, icon = "", urgency = "normal") {
const cmds = ["notify-send", "-u", urgency, "-a", "quickshell"];
if (icon)
Quickshell.execDetached(["notify-send", "-u", urgency, "-i", icon, title, message, "-a", "quickshell"]);
else
Quickshell.execDetached(["notify-send", "-u", urgency, title, message, "-a", "quickshell"]);
cmds.push("-i", icon);
if (nohistory) {
cmds.push("--hint", "int:transient:1");
cmds.push("--expire-time", "3000");
}
cmds.push(title, message);
Quickshell.execDetached(cmds);
}
}