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 {
|
CustomText {
|
||||||
id: titleText
|
id: titleText
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
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
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
import Quickshell
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
import "../../settings/"
|
import "../../settings/"
|
||||||
@ -7,19 +6,23 @@ Item {
|
|||||||
IpcHandler {
|
IpcHandler {
|
||||||
id: ipcHandler
|
id: ipcHandler
|
||||||
target: "settings"
|
target: "settings"
|
||||||
|
property bool generate: Settings.config.generateScheme
|
||||||
function setWall(newWall: string): void {
|
function setWall(newWall: string): void {
|
||||||
Settings.config.currentWall = newWall;
|
Settings.config.currentWall = newWall;
|
||||||
|
kittyKiller.exec(kittyKiller.command);
|
||||||
|
if (generate) {
|
||||||
wallustRunner.exec(wallustRunner.command);
|
wallustRunner.exec(wallustRunner.command);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Process {
|
Process {
|
||||||
id: wallustRunner
|
id: wallustRunner
|
||||||
property string cmd: "wallust run " + Settings.config.currentWall
|
property string cmd: "wallust run " + Settings.config.currentWall
|
||||||
command: ["sh", "-c", cmd]
|
command: ["sh", "-c", cmd]
|
||||||
onStarted: console.log("started wallust runner" + command)
|
|
||||||
}
|
}
|
||||||
Process {
|
Process {
|
||||||
id: kittyKiller
|
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 "../"
|
import "../"
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
font.family: "Material Symbols Sharp"
|
font.family: "Material Symbols Rounded"
|
||||||
color: Colors.foreground
|
color: Colors.foreground
|
||||||
font.pixelSize: Settings.config.fontSize + 1
|
font.pixelSize: Settings.config.fontSize + 1
|
||||||
font.variableAxes: ({
|
font.variableAxes: ({
|
||||||
FILL: 1,
|
FILL: 1,
|
||||||
GRAD: 200,
|
GRAD: 100,
|
||||||
wght: 500
|
wght: 400
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,6 +31,7 @@ Singleton {
|
|||||||
property bool floating: true
|
property bool floating: true
|
||||||
property int paddingTop: 10
|
property int paddingTop: 10
|
||||||
property int paddingSides: 10
|
property int paddingSides: 10
|
||||||
|
property var generateScheme: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user