mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
15 lines
562 B
QML
15 lines
562 B
QML
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
import qs.modules.common
|
|
import qs.modules.common.functions
|
|
|
|
Process {
|
|
id: screenshotProc
|
|
running: true
|
|
property string screenshotDir: Directories.screenshotTemp
|
|
required property ShellScreen screen
|
|
property string screenshotPath: `${screenshotDir}/image-${screen.name}`
|
|
command: ["bash", "-c", `mkdir -p '${StringUtils.shellSingleQuoteEscape(screenshotDir)}' && grim -o '${StringUtils.shellSingleQuoteEscape(screen.name)}' '${StringUtils.shellSingleQuoteEscape(screenshotPath)}'`]
|
|
}
|