summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/dashboard/Media.qml2
-rw-r--r--modules/dashboard/dash/Media.qml6
-rw-r--r--modules/session/Content.qml3
-rw-r--r--services/Wallpapers.qml4
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)))