add toggle to generate colors and switch up title logic

This commit is contained in:
lucy 2026-01-19 00:48:57 +01:00
parent 86f56f6bdc
commit 64d219b4bd
4 changed files with 12 additions and 8 deletions

View File

@ -19,7 +19,7 @@ Rectangle {
CustomText {
id: titleText
anchors.horizontalCenter: parent.horizontalCenter
text: root.activeWindow ? root.activeWindow.activated ? root.activeWindow.appId : "Desktop" : "fail"
text: root.activeWindow ? root.activeWindow.activated ? root.activeWindow.appId : "Desktop" : "Desktop"
elide: Text.ElideRight
}
}

View File

@ -1,4 +1,3 @@
import Quickshell
import QtQuick
import Quickshell.Io
import "../../settings/"
@ -7,19 +6,23 @@ Item {
IpcHandler {
id: ipcHandler
target: "settings"
property bool generate: Settings.config.generateScheme
function setWall(newWall: string): void {
Settings.config.currentWall = newWall;
wallustRunner.exec(wallustRunner.command);
kittyKiller.exec(kittyKiller.command);
if (generate) {
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)
}
Process {
id: kittyKiller
command: ["sh", "-c", "pkill", "-SIGUSR1", "kitty"]
property string cmd: "pkill -SIGUSR1 kitty"
command: ["sh", "-c", cmd]
}
}

View File

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

View File

@ -31,6 +31,7 @@ Singleton {
property bool floating: true
property int paddingTop: 10
property int paddingSides: 10
property var generateScheme: true
}
}
}