mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
progress save
This commit is contained in:
parent
e359e006c7
commit
41ccd5c460
9 changed files with 164 additions and 287 deletions
|
|
@ -1,11 +1,9 @@
|
|||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
import ".."
|
||||
|
||||
Scope {
|
||||
id: root
|
||||
property string matugenConf: Qt.resolvedUrl("matugen.toml").toString().replace("file://", "")
|
||||
|
||||
LazyLoader {
|
||||
loading: true
|
||||
|
|
@ -40,43 +38,6 @@ Scope {
|
|||
|
||||
function onWallpaperUrlChanged() {
|
||||
console.log("Switching wallpaper: " + ShellSettings.settings.wallpaperUrl);
|
||||
matugen.running = true;
|
||||
}
|
||||
|
||||
function onColorSchemeChanged() {
|
||||
console.log("Switching color scheme: " + ShellSettings.settings.colorScheme);
|
||||
matugen.running = true;
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
id: matugen
|
||||
running: false
|
||||
|
||||
// Don't format this lol
|
||||
command: [
|
||||
"matugen",
|
||||
"image",
|
||||
ShellSettings.settings.wallpaperUrl.replace("file://", ""),
|
||||
"--type",
|
||||
ShellSettings.settings.colorScheme,
|
||||
"--json",
|
||||
"hex",
|
||||
"--config",
|
||||
root.matugenConf
|
||||
]
|
||||
|
||||
stdout: SplitParser {
|
||||
onRead: data => {
|
||||
console.log(ShellSettings.settings.colorScheme);
|
||||
try {
|
||||
ShellSettings.colors = JSON.parse(data)['colors']['dark'];
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
|
||||
stderr: SplitParser {
|
||||
onRead: data => console.log(`line read: ${data}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue