Add quickshell screenshot

This commit is contained in:
outfoxxed 2024-03-29 06:22:26 -07:00
parent 36ff76a601
commit 5a70b9493c
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
9 changed files with 310 additions and 9 deletions

View file

@ -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