aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/modules/common/Directories.qml
blob: 9ddf43bdc3ac0f9af68d7042782c1c8dd3a92dc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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