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 { MouseArea {
anchors.fill: parent anchors.fill: parent
acceptedButtons: Qt.LeftButton acceptedButtons: Qt.LeftButton
cursorShape: Qt.PointingHandCursor
onClicked: { onClicked: {
parent.modelData.activate(); parent.modelData.activate();
} }

View File

@ -3,10 +3,19 @@ import QtQuick
import Quickshell.Io import Quickshell.Io
import "../../settings/" import "../../settings/"
Item {
IpcHandler { IpcHandler {
id: ipcHandler id: ipcHandler
target: "settings" target: "settings"
function setWall(newWall: string): void { function setWall(newWall: string): void {
Settings.config.currentWall = newWall; 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 "../" import "../"
Text { Text {
font.family: "Material Symbols Rounded" font.family: "Material Symbols Sharp"
color: Colors.foreground color: Colors.foreground
font.pixelSize: Settings.config.fontSize + 1 font.pixelSize: Settings.config.fontSize + 1
font.variableAxes: ({ font.variableAxes: ({
FILL: 1,
GRAD: 200, GRAD: 200,
wght: 400 wght: 500
}) })
} }