last 7 months of qs changes

This commit is contained in:
outfoxxed 2025-01-06 00:13:19 -08:00
parent 2c64563ade
commit 4b90113a54
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
103 changed files with 3467 additions and 1415 deletions

View file

@ -1,4 +1,5 @@
// very bad code DO NOT COPY
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
@ -25,7 +26,7 @@ Scope {
Process {
id: grimProc
command: ["grim", "-l", "0", path]
command: ["grim", "-l", "0", root.path]
onExited: code => {
if (code == 0) {
root.visible = true
@ -40,12 +41,11 @@ Scope {
id: magickProc
command: [
"magick",
path,
"-crop",
`${selection.w}x${selection.h}+${selection.x}+${selection.y}`,
"-quality",
"70",
path,
root.path,
"-crop", `${selection.w}x${selection.h}+${selection.x}+${selection.y}`,
"-quality", "70",
"-page", "0x0+0+0", // removes page size and shot position
root.path,
]
onExited: wlCopy.running = true;
@ -53,14 +53,14 @@ Scope {
Process {
id: wlCopy
command: ["sh", "-c", `wl-copy < '${path}'`]
command: ["sh", "-c", `wl-copy < '${root.path}'`]
onExited: shootingComplete = true;
onExited: root.shootingComplete = true;
}
Process {
id: cleanupProc
command: ["rm", path]
command: ["rm", root.path]
}
QtObject {