29 lines
793 B
QML
Raw Normal View History

import QtQuick
import Quickshell.Io
import qs.settings
Item {
IpcHandler {
id: ipcHandler
target: "settings"
function setWall(newWall: string): void {
2026-01-19 13:44:25 +01:00
console.log(Settings.config.generateScheme);
Settings.config.currentWall = newWall;
2026-01-19 13:44:25 +01:00
if (Settings.config.generateScheme === true) {
wallustRunner.startDetached();
}
}
2026-01-19 13:44:25 +01:00
function setFont(newFont: string): void {
2026-01-19 13:48:00 +01:00
Settings.config.font = newFont;
}
function gen(toggle: bool): void {
Settings.config.generateScheme = toggle;
2026-01-19 13:44:25 +01:00
}
}
Process {
id: wallustRunner
2026-01-20 12:31:43 +01:00
property string cmd: "matugen image " + Settings.config.currentWall
command: ["sh", "-c", cmd]
2026-01-18 13:37:04 +01:00
}
}