test
This commit is contained in:
@@ -121,7 +121,7 @@
|
|||||||
|
|
||||||
home.file.".config/aurora/settings.json".text = builtins.toJSON cfg.settings;
|
home.file.".config/aurora/settings.json".text = builtins.toJSON cfg.settings;
|
||||||
|
|
||||||
systemd.user.services.quickshell.Service.Environment = [ "SETTINGS=${config.home.homeDirectory}/${config.home.file.".config/aurora/settings.json".target}" ];
|
systemd.user.services.quickshell.Service.Environment = [ "AURORA_SETTINGS=${config.home.homeDirectory}/${config.home.file.".config/aurora/settings.json".target}" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,13 @@ PanelWindow {
|
|||||||
bottom: true
|
bottom: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IpcHandler {
|
||||||
|
target: "shell"
|
||||||
|
function reload() {
|
||||||
|
Quickshell.reload(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
|
||||||
|
|||||||
@@ -15,17 +15,22 @@ Singleton {
|
|||||||
|
|
||||||
property bool launcherOpen: false
|
property bool launcherOpen: false
|
||||||
|
|
||||||
property string colorsDir: s_json.colorsDir
|
|
||||||
|
|
||||||
property string wallpaperDir: s_json.wallpaperDir
|
property string wallpaperDir: s_json.wallpaperDir
|
||||||
|
|
||||||
property string settingsDir: Quickshell.env("SETTINGS")
|
property string colorsPath: s_json.colorsPath
|
||||||
|
|
||||||
|
property Process changeColors: Process {
|
||||||
|
command: [ s_json.changeColorsCmd ]
|
||||||
|
running: false
|
||||||
|
}
|
||||||
|
|
||||||
|
property string settingsPath: Quickshell.env("AURORA_SETTINGS")
|
||||||
onSettingsDirChanged: reload()
|
onSettingsDirChanged: reload()
|
||||||
|
|
||||||
function reload() {
|
function reload() {
|
||||||
settings.reload()
|
settings.reload()
|
||||||
root.wallpaperDir = Qt.binding(() => s_json.wallpaperDir)
|
root.wallpaperDir = Qt.binding(() => s_json.wallpaperDir)
|
||||||
root.colorsDir = Qt.binding(() => s_json.colorsDir)
|
root.colorsPath = Qt.binding(() => s_json.colorsPath)
|
||||||
root.wallpaper = Qt.binding(() => c_json.wallpaper)
|
root.wallpaper = Qt.binding(() => c_json.wallpaper)
|
||||||
root.colors = Qt.binding(() => c_json.colors)
|
root.colors = Qt.binding(() => c_json.colors)
|
||||||
}
|
}
|
||||||
@@ -36,7 +41,7 @@ Singleton {
|
|||||||
|
|
||||||
id: settings
|
id: settings
|
||||||
|
|
||||||
path: root.settingsDir
|
path: root.settingsPath
|
||||||
|
|
||||||
watchChanges: true
|
watchChanges: true
|
||||||
|
|
||||||
@@ -46,7 +51,9 @@ Singleton {
|
|||||||
id: s_json
|
id: s_json
|
||||||
property string wallpaperDir
|
property string wallpaperDir
|
||||||
|
|
||||||
property string colorsDir
|
property string colorsPath
|
||||||
|
|
||||||
|
property string changeColorsCmd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,7 +72,7 @@ Singleton {
|
|||||||
|
|
||||||
id: pywal
|
id: pywal
|
||||||
|
|
||||||
path: root.colorsDir
|
path: root.colorsPath
|
||||||
|
|
||||||
watchChanges: true
|
watchChanges: true
|
||||||
|
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ Flickable {
|
|||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
sw.running = true
|
sw.running = true
|
||||||
|
Settings.changeColors.running = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user