-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathshell.qml
More file actions
46 lines (42 loc) · 1.28 KB
/
shell.qml
File metadata and controls
46 lines (42 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import Quickshell
import QtQuick
import Quickshell.Wayland // for WlrLayershell & WlrLayer
ShellRoot {
PanelWindow {
WlrLayershell.layer: WlrLayer.Background // use this to make it background
anchors {
top: true
left: true
right: true
bottom: true
}
color: "transparent"
Rectangle {
anchors.fill: parent
color: "transparent"
Image { // if you want a gif, use AnimatedImage instead
id: img
source: "./hollow.jpg"
fillMode: Image.PreserveAspectCrop
anchors.fill: parent
visible: false
mipmap: true
}
ShaderEffect {
id: shader
anchors.fill: parent
property vector2d resolution: Qt.vector2d(width, height)
property real time: 0
property variant source: img
FrameAnimation {
running: true
onTriggered: {
shader.time = this.elapsedTime;
}
}
vertexShader: "default.vert.qsb"
fragmentShader: "Raining.frag.qsb"
}
}
}
}