mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 16:02:51 -05:00
re-add --screenshot
This commit is contained in:
@@ -21,9 +21,17 @@ Item {
|
|||||||
command: []
|
command: []
|
||||||
onExited: (code) => {
|
onExited: (code) => {
|
||||||
if (pendingSceneId !== "") {
|
if (pendingSceneId !== "") {
|
||||||
|
const cacheHome = StandardPaths.writableLocation(StandardPaths.CacheLocation).toString()
|
||||||
|
const baseDir = cacheHome.startsWith("file://") ? cacheHome.substring(7) : cacheHome
|
||||||
|
const outDir = baseDir + "/dankshell/we_screenshots"
|
||||||
|
const outPath = outDir + "/" + pendingSceneId + ".jpg"
|
||||||
|
console.log("SCREENSHOT PATH", outPath)
|
||||||
|
|
||||||
|
Quickshell.execDetached(["mkdir", "-p", outDir])
|
||||||
weProcess.command = [
|
weProcess.command = [
|
||||||
"linux-wallpaperengine",
|
"linux-wallpaperengine",
|
||||||
"--screen-root", monitor,
|
"--screen-root", monitor,
|
||||||
|
"--screenshot", outPath,
|
||||||
"--bg", pendingSceneId,
|
"--bg", pendingSceneId,
|
||||||
"--silent"
|
"--silent"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user