0
trickyni trickyniv56@gmail.com
Wed, 03 Sep 2025 19:15:46 +0300
19 files changed,
173 insertions(+),
0 deletions(-)
jump to
A
animation/AnimationTest.qml
@@ -0,0 +1,32 @@
+import QtQuick +import Quickshell + +PanelWindow { + id: root + width: 32 + height: 32 + visible: true + color: "black" + anchors { + right: true + bottom: true + } + SpriteSequence { + id: anim + anchors.centerIn: parent + width: 64 + height: 64 + running: true + interpolate: false + + Sprite { + name: "idle" + source: "WhiteCatRun.png" + frameCount: 6 + frameWidth: 32 + frameHeight: 32 + frameRate: 12 + } + } +} +
A
animation/Sprite.qml
@@ -0,0 +1,27 @@
+import QtQuick +import Quickshell + +Rectangle { + width: 200 + height: 200 + color: "black" + + SpriteSequence { + id: anim + anchors.centerIn: parent + width: 64 // frame width + height: 64 // frame height + running: true + interpolate: false + + Sprite { + name: "idle" + source: "anim.png" // your spritesheet + frameCount: 6 // total number of frames + frameWidth: 64 // single frame size + frameHeight: 64 + frameRate: 12 // frames per second + } + } +} +
A
lockscreen/AnimationTest.qml
@@ -0,0 +1,32 @@
+import QtQuick +import Quickshell + +PanelWindow { + id: root + width: 32 + height: 32 + visible: true + color: "black" + anchors { + right: true + bottom: true + } + SpriteSequence { + id: anim + anchors.centerIn: parent + width: 64 + height: 64 + running: true + interpolate: false + + Sprite { + name: "idle" + source: "WhiteCatRun.png" + frameCount: 6 + frameWidth: 32 + frameHeight: 32 + frameRate: 12 + } + } +} +
A
lockscreen/Lock.qml
@@ -0,0 +1,23 @@
+import QtQuick +import Quickshell +import Quickshell.Services.Pam +import Quickshell.Wayland +import QtQuick.Controls + +WlSessionLock { + id: lock + + WlSessionLockSurface { + color: "black" + AnimationTest{ + Button { + text: "unlock me" + onClicked: lock.locked = false + } + } + } +} + + + +
A
lockscreen/LockButton.qml
@@ -0,0 +1,15 @@
+import QtQuick +import Quickshell +import Quickshell.Services.Pam +import Quickshell.Wayland +import QtQuick.Controls + +PanelWindow { + Rectangle { + height:200 + width:200 + Button { + onClicked: Lock.lock.locked=true + } + } +}
A
lockscreen/Pam.qml
@@ -0,0 +1,4 @@
+import QtQuick +import Quickshell +import Quickshell.Services.Pam +import Quickshell.Wayland
A
lockscreen/Surface.qml
@@ -0,0 +1,14 @@
+import QtQuick +import Quickshell +import Quickshell.Services.Pam +import Quickshell.Wayland +import QtQuick.Controls + +WlSessionLockSurface { + + AnimationTest { + Button { + onClicked: Lock.lock.locked = true + } + } +}
A
lockscreen/lockscreen.qml
@@ -0,0 +1,5 @@
+import QtQuick +import Quickshell +import Quickshell.Services.Pam + +
M
shell.qml
→
shell.qml
@@ -5,6 +5,8 @@ import Quickshell.Io
import QtQuick import ".." import "bar" +import "animation" +import "lockscreen" Scope { FontLoader {@@ -20,4 +22,8 @@ id: font_notosans
source: "fonts/NotoSansMono-Thin.ttf" } Bar {} + // AnimationTest{} + // Surface{} + // Lock{} + // LockButton{} }