This commit is contained in:
2026-04-10 16:09:16 -05:00
parent b97e9dc547
commit 58adc58002
4 changed files with 23 additions and 8 deletions

View File

@@ -121,7 +121,7 @@
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}" ];
};
};
}

View File

@@ -36,6 +36,13 @@ PanelWindow {
bottom: true
}
IpcHandler {
target: "shell"
function reload() {
Quickshell.reload(false)
}
}
Component.onCompleted: {

View File

@@ -15,17 +15,22 @@ Singleton {
property bool launcherOpen: false
property string colorsDir: s_json.colorsDir
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()
function reload() {
settings.reload()
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.colors = Qt.binding(() => c_json.colors)
}
@@ -36,7 +41,7 @@ Singleton {
id: settings
path: root.settingsDir
path: root.settingsPath
watchChanges: true
@@ -46,7 +51,9 @@ Singleton {
id: s_json
property string wallpaperDir
property string colorsDir
property string colorsPath
property string changeColorsCmd
}
}
@@ -65,7 +72,7 @@ Singleton {
id: pywal
path: root.colorsDir
path: root.colorsPath
watchChanges: true

View File

@@ -79,6 +79,7 @@ Flickable {
onClicked: {
sw.running = true
Settings.changeColors.running = true
}
}
}