mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 23:42:51 -05:00
niri: allow using satty as the editor
This commit is contained in:
@@ -550,8 +550,10 @@ Singleton {
|
|||||||
return
|
return
|
||||||
|
|
||||||
if (pendingScreenshotPath && data.path === pendingScreenshotPath) {
|
if (pendingScreenshotPath && data.path === pendingScreenshotPath) {
|
||||||
|
const editor = Quickshell.env("DMS_SCREENSHOT_EDITOR")
|
||||||
|
const command = editor === "satty" ? ["satty", "-f", data.path] : ["swappy", "-f", data.path]
|
||||||
Quickshell.execDetached({
|
Quickshell.execDetached({
|
||||||
command: ["swappy", "-f", data.path]
|
command: command
|
||||||
})
|
})
|
||||||
pendingScreenshotPath = ""
|
pendingScreenshotPath = ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user