add function to change font on the fly

This commit is contained in:
lucy 2026-01-19 13:44:25 +01:00
parent eab6135f93
commit 90b6470bc4
2 changed files with 10 additions and 5 deletions

View File

@ -6,14 +6,17 @@ Item {
IpcHandler {
id: ipcHandler
target: "settings"
property bool generate: Settings.config.generateScheme
function setWall(newWall: string): void {
console.log(Settings.config.generateScheme);
Settings.config.currentWall = newWall;
kittyKiller.exec(kittyKiller.command);
if (generate) {
wallustRunner.exec(wallustRunner.command);
kittyKiller.startDetached();
if (Settings.config.generateScheme === true) {
wallustRunner.startDetached();
}
}
function setFont(newFont: string): void {
Settings.config.font = newFont
}
}
Process {
id: wallustRunner

View File

@ -5,16 +5,18 @@ import Quickshell
import Quickshell.Io
Singleton {
id: settings
property alias config: settingsAdapter
onConfigChanged: {
console.log('config change detected, writing adapter');
settingsView.writeAdapter();
}
}
FileView {
id: settingsView
onAdapterUpdated: writeAdapter()
onFileChanged: reload()
path: "/home/lucy/.config/quickshell/settings/config.json"
watchChanges: true