From 64d219b4bd81341296eb5d6c7f14b381694c5239 Mon Sep 17 00:00:00 2001 From: lucy Date: Mon, 19 Jan 2026 00:48:57 +0100 Subject: [PATCH] add toggle to generate colors and switch up title logic --- modules/bar/Title.qml | 2 +- modules/ipc/Ipc.qml | 11 +++++++---- reusables/CustomIcon.qml | 6 +++--- settings/Settings.qml | 1 + 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/modules/bar/Title.qml b/modules/bar/Title.qml index ca39764..564369a 100644 --- a/modules/bar/Title.qml +++ b/modules/bar/Title.qml @@ -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 } } diff --git a/modules/ipc/Ipc.qml b/modules/ipc/Ipc.qml index b680c4e..d5ec290 100644 --- a/modules/ipc/Ipc.qml +++ b/modules/ipc/Ipc.qml @@ -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] } } diff --git a/reusables/CustomIcon.qml b/reusables/CustomIcon.qml index bea7f60..e19aae3 100644 --- a/reusables/CustomIcon.qml +++ b/reusables/CustomIcon.qml @@ -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 }) } diff --git a/settings/Settings.qml b/settings/Settings.qml index 537dbe8..8f89725 100644 --- a/settings/Settings.qml +++ b/settings/Settings.qml @@ -31,6 +31,7 @@ Singleton { property bool floating: true property int paddingTop: 10 property int paddingSides: 10 + property var generateScheme: true } } }