make wallust generate colorscheme from ipc

This commit is contained in:
lucy 2026-01-18 01:29:27 +01:00
parent 1cd52d9a52
commit e08b910471
3 changed files with 18 additions and 7 deletions

View File

@ -48,6 +48,7 @@ Item {
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
cursorShape: Qt.PointingHandCursor
onClicked: {
parent.modelData.activate();
}

View File

@ -3,10 +3,19 @@ import QtQuick
import Quickshell.Io
import "../../settings/"
IpcHandler {
id: ipcHandler
target: "settings"
function setWall(newWall: string): void {
Settings.config.currentWall = newWall;
Item {
IpcHandler {
id: ipcHandler
target: "settings"
function setWall(newWall: string): void {
Settings.config.currentWall = newWall;
wallustRunner.exec(wallustRunner.command);
}
}
Process {
id: wallustRunner
property string cmd: "wallust run " + Settings.config.currentWall
command: ["sh", "-c", cmd]
onStarted: console.log("started wallust runner" + command)
}
}

View File

@ -3,11 +3,12 @@ import "../settings/"
import "../"
Text {
font.family: "Material Symbols Rounded"
font.family: "Material Symbols Sharp"
color: Colors.foreground
font.pixelSize: Settings.config.fontSize + 1
font.variableAxes: ({
FILL: 1,
GRAD: 200,
wght: 400
wght: 500
})
}