diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-28 19:05:42 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-28 19:05:42 +1000 |
| commit | 8915808414da02e11ef7cb894e6a710ebdd7dc56 (patch) | |
| tree | 7a5e9ec1b6908ef506f40919fdc95a9436a2587b | |
| parent | config: fix overwrite on startup (diff) | |
| download | caelestia-shell-8915808414da02e11ef7cb894e6a710ebdd7dc56.tar.gz caelestia-shell-8915808414da02e11ef7cb894e6a710ebdd7dc56.tar.bz2 caelestia-shell-8915808414da02e11ef7cb894e6a710ebdd7dc56.zip | |
config: allow resolving paths from home
| -rw-r--r-- | modules/dashboard/Media.qml | 2 | ||||
| -rw-r--r-- | modules/dashboard/dash/Media.qml | 6 | ||||
| -rw-r--r-- | modules/session/Content.qml | 3 | ||||
| -rw-r--r-- | services/Wallpapers.qml | 4 |
4 files changed, 7 insertions, 8 deletions
diff --git a/modules/dashboard/Media.qml b/modules/dashboard/Media.qml index 599b922..58e942b 100644 --- a/modules/dashboard/Media.qml +++ b/modules/dashboard/Media.qml @@ -525,7 +525,7 @@ Item { playing: root.shouldUpdate && (Players.active?.isPlaying ?? false) speed: BeatDetector.bpm / 300 - source: Config.paths.mediaGif + source: Paths.expandTilde(Config.paths.mediaGif) asynchronous: true fillMode: AnimatedImage.PreserveAspectFit } diff --git a/modules/dashboard/dash/Media.qml b/modules/dashboard/dash/Media.qml index 0567095..464f349 100644 --- a/modules/dashboard/dash/Media.qml +++ b/modules/dashboard/dash/Media.qml @@ -1,9 +1,7 @@ import "root:/widgets" import "root:/services" import "root:/config" -import Quickshell -import Quickshell.Io -import Quickshell.Widgets +import "root:/utils" import QtQuick import QtQuick.Shapes @@ -223,7 +221,7 @@ Item { playing: root.shouldUpdate && (Players.active?.isPlaying ?? false) speed: BeatDetector.bpm / 300 - source: Config.paths.mediaGif + source: Paths.expandTilde(Config.paths.mediaGif) asynchronous: true fillMode: AnimatedImage.PreserveAspectFit } diff --git a/modules/session/Content.qml b/modules/session/Content.qml index 63a184f..efcc5e8 100644 --- a/modules/session/Content.qml +++ b/modules/session/Content.qml @@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound import "root:/widgets" import "root:/services" import "root:/config" +import "root:/utils" import Quickshell import QtQuick @@ -60,7 +61,7 @@ Column { playing: visible asynchronous: true speed: 0.7 - source: Config.paths.sessionGif + source: Paths.expandTilde(Config.paths.sessionGif) } SessionButton { diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml index eea4cb4..5a84d8d 100644 --- a/services/Wallpapers.qml +++ b/services/Wallpapers.qml @@ -97,7 +97,7 @@ Singleton { id: getWallsProc running: true - command: ["find", Config.paths.wallpaperDir, "-type", "d", "-path", '*/.*', "-prune", "-o", "-not", "-name", '.*', "-type", "f", "-print"] + command: ["find", Paths.expandTilde(Config.paths.wallpaperDir), "-type", "d", "-path", '*/.*', "-prune", "-o", "-not", "-name", '.*', "-type", "f", "-print"] stdout: StdioCollector { onStreamFinished: wallpapers.model = text.trim().split("\n").filter(w => root.extensions.includes(w.slice(w.lastIndexOf(".") + 1))).sort() } @@ -107,7 +107,7 @@ Singleton { id: watchWallsProc running: true - command: ["inotifywait", "-r", "-e", "close_write,moved_to,create", "-m", Config.paths.wallpaperDir] + command: ["inotifywait", "-r", "-e", "close_write,moved_to,create", "-m", Paths.expandTilde(Config.paths.wallpaperDir)] stdout: SplitParser { onRead: data => { if (root.extensions.includes(data.slice(data.lastIndexOf(".") + 1))) |