aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/modules/common/Directories.qml
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-07-25 21:31:54 +0900
committerGitHub <noreply@github.com>2025-07-25 21:31:54 +0900
commitdd889d3aac40075ee73f76290c69ccc698673817 (patch)
tree67dc1026bc09a93cb5250e1c28adda15c592aff4 /config/quickshell/modules/common/Directories.qml
parent637025eeb60391e5cc17c883aa6ee95799acac76 (diff)
parentaa3c94f1ad44038d6a71ee8e12a704e6089e31f6 (diff)
Merge pull request #775 from JaKooLit/development
Development to main
Diffstat (limited to 'config/quickshell/modules/common/Directories.qml')
-rw-r--r--config/quickshell/modules/common/Directories.qml20
1 files changed, 20 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..f4a6bf83
--- /dev/null
+++ b/config/quickshell/modules/common/Directories.qml
@@ -0,0 +1,20 @@
+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]
+ readonly property string gen_cache: StandardPaths.standardLocations(StandardPaths.GenericCacheLocation)[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