This commit is contained in:
2026-04-09 11:16:48 -05:00
parent 76a5bf5917
commit f4b032e96f
23 changed files with 274 additions and 160 deletions

View File

@@ -16,7 +16,7 @@ Flickable {
id: root
property string dir: "/home/nathan/Pictures/Wallpaper/"
property string dir: Settings.wallpaperDir
implicitHeight: lay.height
implicitWidth: 750
@@ -26,8 +26,6 @@ Flickable {
flickDeceleration: 5000
contentX: 100
WheelHandler {
target: root
//property: "contentX"
@@ -64,7 +62,7 @@ Flickable {
implicitWidth: 192 * 2; implicitHeight: 108 * 2
Image {
width: 192 * 2; height: 108 * 2
source: Qt.resolvedUrl(root.dir + rep.model[index])
source: Qt.resolvedUrl(root.dir + "/" + rep.model[index])
fillMode: Image.PreserveAspectCrop
sourceSize.width: 192 * 2
sourceSize.height: 108 * 2
@@ -72,7 +70,7 @@ Flickable {
}
property Process sw: Process {
command: ["setWallpaper", root.dir + rep.model[index]]
command: ["aurora-set-wallpaper", root.dir + "/" + rep.model[index]]
running: false
onRunningChanged: {
root.hyprcmds.forEach((c) => Hyprland.dispatch(c))