aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/modules/common/Directories.qml
diff options
context:
space:
mode:
authorKiran George <kirangeorge1995@gmail.com>2025-06-09 11:30:08 +0530
committerKiran George <kirangeorge1995@gmail.com>2025-06-09 11:30:08 +0530
commit952aa63147c9fb28f6ace6f0bc7ccf45ced1299a (patch)
tree306e6d86603a162c00bc5113b56baac0fe7bec7c /config/quickshell/modules/common/Directories.qml
parent4cf0d0bd5930da76e60f6770de3ee97c10ca7024 (diff)
Overview v2
Diffstat (limited to 'config/quickshell/modules/common/Directories.qml')
-rw-r--r--config/quickshell/modules/common/Directories.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/quickshell/modules/common/Directories.qml b/config/quickshell/modules/common/Directories.qml
new file mode 100644
index 00000000..9ddf43bd
--- /dev/null
+++ b/config/quickshell/modules/common/Directories.qml
@@ -0,0 +1,19 @@
+pragma Singleton
+pragma ComponentBehavior: Bound
+
+import "root:/modules/common/functions/file_utils.js" as FileUtils
+import Qt.labs.platform
+import QtQuick
+import Quickshell
+import Quickshell.Hyprland
+
+Singleton {
+ // XDG Dirs, with "file://"
+ readonly property string config: StandardPaths.standardLocations(StandardPaths.ConfigLocation)[0]
+ readonly property string state: StandardPaths.standardLocations(StandardPaths.StateLocation)[0]
+
+ // Other dirs used by the shell, without "file://"
+ property string shellConfig: FileUtils.trimFileProtocol(`${Directories.config}/quickshell`)
+ property string shellConfigPath: `${Directories.shellConfig}/config.json`
+ property string generatedMaterialThemePath: `${Directories.shellConfig}/qml_color.json`
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage