clean up docs
This commit is contained in:
1 parent
8426b53251
commit
d13bfda1f9
3 files changed
+3
-7
No files matched your search
@@ -416,10 +416,7 @@ Item {
|
||||
}
|
||||
const path = root.previewPath(key);
|
||||
if (root.kind === "niri") {
|
||||
// niri only shows its "Screenshot captured" notice when it saves a
|
||||
// file, so skip the file and copy the image from the clipboard.
|
||||
// The id and path are passed as $1 and $2, not pasted into the script.
|
||||
shotProc.command = ["sh", "-c", "niri msg action screenshot-window --id \"$1\" --write-to-disk false && wl-paste --type image/png > \"$2\"", "sh", w.captureId, path];
|
||||
shotProc.command = ["niri", "msg", "action", "screenshot-window", "--id", w.captureId, "--write-to-disk", "true", "--path", path];
|
||||
} else {
|
||||
shotProc.command = ["grim", "-T", w.captureId, path];
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ QtObject {
|
||||
readonly property bool livePreviews: true
|
||||
// Still snapshots taken when the loop opens. On Hyprland they back up the
|
||||
// live previews and use grim. On niri they use niri's own screenshot,
|
||||
// which also replaces the clipboard, and need wl-paste.
|
||||
// which always shows a notification and replaces the clipboard.
|
||||
readonly property bool snapshotPreviewsHyprland: true
|
||||
readonly property bool snapshotPreviewsNiri: true
|
||||
|
||||
|
||||
Reference in new issue
Block a user