Files
monoshell/Boateye.qml
2026-02-13 13:50:48 -08:00

68 lines
1.5 KiB
QML

import Quickshell
import Quickshell.Wayland
import Quickshell.Widgets
import Quickshell.Io
import QtQuick
import QtQuick.Effects
PanelWindow {
id: root
visible: false
anchors {
left: true
bottom: true
}
implicitHeight: 540
implicitWidth: 540
color: "transparent"
IpcHandler {
target: "boateye"
function open() {root.visible = true}
function close() {root.visible = false}
}
RectangularShadow {
anchors.fill: wrapper
radius: wrapper.radius
blur: 10
spread: 2
}
ClippingRectangle {
color: "#181818"
anchors {
left: parent.left
bottom: parent.bottom
margins: 12
}
width: 500
height: 500
id: wrapper
radius: 12
Item {
anchors.fill: parent
ScreencopyView {
width: Quickshell.screens[0].width
height: Quickshell.screens[0].height
live: true
captureSource: Quickshell.screens[0]
x: -1292
y: -450
}
transform: Scale {
origin {
x: width/2
y: height/2
}
xScale: 15
yScale: 10
}
}
Image {
anchors.fill: parent
source: "/home/spingus/Pictures/boateye.png"
}
}
}