quickshell/modules/bar/Title.qml

18 lines
492 B
QML

import QtQuick
import "../../reusables/"
import "../../settings/"
import Quickshell.Hyprland
Item {
id: root
readonly property var activeWindow: Hyprland.activeToplevel
implicitWidth: text.implicitWidth
implicitHeight: Settings.config.barHeight
CustomText {
id: text
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
text: root.activeWindow ? Hyprland.activeToplevel.title : "Desktop"
}
}