Worked on the screenshot utility

This commit is contained in:
Tomas Rivera
2026-03-12 10:48:57 +01:00
parent ddd474d0d9
commit 16b41fe8aa
3 changed files with 12 additions and 7 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ PanelWindow {
}
Process {
id: notifyCmd
command: ["notify-send", "\"Screenshot copied\"", "\"The screenshot was copied to your clipboard\""]
command: ["notify-send", "\"Screenshot copied\"", "\"The screenshot was copied to your clipboard\\n\and saved to ~/Pictures/"]
running: false
onExited: root.controller.isOpen = false
}
@@ -53,7 +53,7 @@ PanelWindow {
const y = Math.ceil(root.top);
const w = Math.floor(root.right - root.left);
const h = Math.floor(root.bottom - root.top);
cmd.command = ["sh", "-c", `grim -g "${x},${y} ${w}x${h}" - | wl-copy`];
cmd.command = ["zsh", "-c", `grim -g "${x},${y} ${w}x${h}" - | wl-copy && grim -g "${x},${y} ${w}x${h}"`]; // we copy it once and save it another time
cmd.running = true;
}
}