mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-11 18:18:37 +02:00
Worked on the screenshot utility
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user