mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-04 22:49:50 -05:00
22 lines
389 B
QML
22 lines
389 B
QML
import QtQuick
|
|
import Quickshell.Hyprland
|
|
import ".."
|
|
|
|
Text {
|
|
id: windowText;
|
|
text: "";
|
|
color: ShellGlobals.colors.text;
|
|
font.pointSize: 11;
|
|
visible: text !== "";
|
|
elide: Text.ElideRight;
|
|
|
|
Connections {
|
|
target: Hyprland;
|
|
|
|
function onRawEvent(event) {
|
|
if (event.name === "activewindow") {
|
|
windowText.text = event.parse(2)[1];
|
|
}
|
|
}
|
|
}
|
|
}
|