Add quickshell screenshot
This commit is contained in:
parent
36ff76a601
commit
5a70b9493c
9 changed files with 310 additions and 9 deletions
|
|
@ -4,8 +4,30 @@ import Quickshell.Wayland
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import ".."
|
||||
import "screenshot" as Screenshot
|
||||
|
||||
ShellRoot {
|
||||
Process {
|
||||
command: ["mkdir", "-p", ShellGlobals.rtpath]
|
||||
running: true
|
||||
}
|
||||
|
||||
LazyLoader {
|
||||
id: screenshot
|
||||
loading: true
|
||||
|
||||
Screenshot.Controller {
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: ShellIpc
|
||||
|
||||
function onScreenshot() {
|
||||
screenshot.item.shooting = true;
|
||||
}
|
||||
}
|
||||
|
||||
Variants {
|
||||
model: Quickshell.screens
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue