diff --git a/modules/bar/Title.qml b/modules/bar/Title.qml index d5a032e..9c9a126 100644 --- a/modules/bar/Title.qml +++ b/modules/bar/Title.qml @@ -6,12 +6,14 @@ import Quickshell.Hyprland Item { id: root readonly property var activeWindow: Hyprland.activeToplevel - implicitWidth: text.implicitWidth + implicitWidth: Math.min(text.implicitWidth, 500) implicitHeight: Settings.config.barHeight CustomText { + anchors.left: parent.left + anchors.right: parent.right id: text - anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter text: root.activeWindow ? Hyprland.activeToplevel.title : "Desktop" + elide: Text.ElideRight } } diff --git a/modules/ipc/Ipc.qml b/modules/ipc/Ipc.qml index 13b6dec..b680c4e 100644 --- a/modules/ipc/Ipc.qml +++ b/modules/ipc/Ipc.qml @@ -18,4 +18,8 @@ Item { command: ["sh", "-c", cmd] onStarted: console.log("started wallust runner" + command) } + Process { + id: kittyKiller + command: ["sh", "-c", "pkill", "-SIGUSR1", "kitty"] + } } diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 4a1f8ee..bba7600 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -8,6 +8,7 @@ import "../../" import QtQuick.Layouts import Quickshell.Widgets import "../../settings/" +import "../../reusables/" Variants { model: Quickshell.screens @@ -93,23 +94,17 @@ Variants { Layout.alignment: Qt.AlignTop spacing: 2 - Text { + CustomText { text: notifyItem.modelData.summary - color: Colors.foreground - font.family: Settings.config.font - font.pixelSize: Settings.config.fontSize font.bold: true elide: Text.ElideRight Layout.fillWidth: true onTextChanged: dismissTimer.restart() } - Text { + CustomText { text: notifyItem.modelData.body - color: Colors.foreground - font.family: Settings.config.font - font.pixelSize: Settings.config.fontSize - 2 maximumLineCount: 3 wrapMode: Text.WordWrap elide: Text.ElideRight