From 6b9ecc5b3d75673537a3871172999387e8b7b6c5 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Tue, 23 Sep 2025 23:01:21 -0400 Subject: [PATCH] add wallpaper config --- components/composite/WallpaperList.qml | 2 +- config/Config.qml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/composite/WallpaperList.qml b/components/composite/WallpaperList.qml index 2a67f31..3dfb330 100644 --- a/components/composite/WallpaperList.qml +++ b/components/composite/WallpaperList.qml @@ -19,7 +19,7 @@ ListView { implicitHeight: 90 model: FolderListModel { nameFilters: ["*.jpg"] - folder: `${Paths.home}/Wallpapers` + folder: `file://${Paths.expandTilde(Config.wallpaper.directory)}` showDirs: false } delegate: Item { diff --git a/config/Config.qml b/config/Config.qml index 036f14c..416d739 100644 --- a/config/Config.qml +++ b/config/Config.qml @@ -7,6 +7,7 @@ Singleton { id: root readonly property alias powermenu: adapter.powermenu + readonly property alias wallpaper: adapter.wallpaper FileView { path: `${Paths.config}/shell.json` @@ -19,6 +20,7 @@ Singleton { id: adapter property var powermenu: PowerMenu {} + property var wallpaper: Wallpaper {} } } @@ -30,4 +32,8 @@ Singleton { property string text property string command } + + component Wallpaper: JsonObject { + property string directory + } }