Files
monoshell/Boateye.qml

71 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
}
WlrLayershell.namespace: "mcsr"
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
layer.enabled: true
layer.smooth: false
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"
}
}
}