summaryrefslogtreecommitdiff
path: root/utils/Paths.qml
diff options
context:
space:
mode:
Diffstat (limited to 'utils/Paths.qml')
-rw-r--r--utils/Paths.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/Paths.qml b/utils/Paths.qml
new file mode 100644
index 0000000..011bb1f
--- /dev/null
+++ b/utils/Paths.qml
@@ -0,0 +1,15 @@
+pragma Singleton
+
+import Quickshell
+import Qt.labs.platform
+
+Singleton {
+ id: root
+
+ readonly property url home: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0]
+ readonly property url pictures: StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0]
+
+ readonly property url data: `${StandardPaths.standardLocations(StandardPaths.GenericDataLocation)[0]}/caelestia`
+ readonly property url state: `${StandardPaths.standardLocations(StandardPaths.GenericStateLocation)[0]}/caelestia`
+ readonly property url cache: `${StandardPaths.standardLocations(StandardPaths.GenericCacheLocation)[0]}/caelestia`
+}