add toggle to generate colors and switch up title logic
This commit is contained in:
parent
86f56f6bdc
commit
64d219b4bd
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
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]
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
@ -31,6 +31,7 @@ Singleton {
|
||||
property bool floating: true
|
||||
property int paddingTop: 10
|
||||
property int paddingSides: 10
|
||||
property var generateScheme: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user