This commit is contained in:
2026-02-09 22:33:24 +01:00
parent 16642e7d02
commit b9a590be69
7 changed files with 48 additions and 26 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

View File

Before

Width:  |  Height:  |  Size: 298 KiB

After

Width:  |  Height:  |  Size: 298 KiB

+6
View File
@@ -9,6 +9,9 @@ Singleton {
id: root
property alias gifFolder: adapter.gifFolder
property alias scaling: adapter.scaling
property alias maxWidth: adapter.maxWidth
property alias maxHeight: adapter.maxHeight
property string configDir: Quickshell.env("HOME") + "/.config/I-DeskPet"
property string configPath: configDir + "/config.json"
@@ -48,6 +51,9 @@ Singleton {
id: adapter
property string gifFolder: Quickshell.shellDir + "/Gifs"
property var scaling: 1
property int maxWidth: 200
property int maxHeight: 200
}
}
}
+1 -1
View File
@@ -26,7 +26,7 @@ Process {
onGifFolderChanged: {
if (running) {
reload()
getGifsProcess.reload()
}
}
}
+4 -4
View File
@@ -1,13 +1,13 @@
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell.Io
import qs.Modules
Repeater {
id: gifRepeater
required property list<string> gifsList
property int firstWidth
property int lastWidth
model: gifsList
Item {
id: gifItem
@@ -26,8 +26,8 @@ Repeater {
x: 0
y: Screen.height - height
width: Math.floor( gif.sourceSize.width / 1.25 )
height: Math.floor( gif.sourceSize.height / 1.25 )
width: Math.min( Math.floor( gif.sourceSize.width / ConfigLoader.scaling ), Math.floor( ConfigLoader.maxWidth / ConfigLoader.scaling ))
height: Math.min( Math.floor( gif.sourceSize.height / ConfigLoader.scaling ), Math.floor( ConfigLoader.maxHeight / ConfigLoader.scaling ))
AnimatedImage {
id: gif
+15
View File
@@ -0,0 +1,15 @@
thingy macbobber: wayland quickshell sessionlock
Timer {
property bool hasReloaded
interval: 5000
repeat: true
onTriggered: {
if ( screenUnlocked && !hasReloaded ) {
hasReloaded = true;
petslocation = null;
petslocation = wherever;
}
return;
}
}
+2 -1
View File
@@ -9,10 +9,11 @@ import qs.Modules
PanelWindow {
id: mainWindow
color: "transparent"
WlrLayershell.namespace: "IDeskPet-Pet"
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.exclusionMode: ExclusionMode.Ignore
surfaceFormat.opaque: false
color: "transparent"
property bool onTop: true
property list<Item> repeaterItems: []