mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
Initial commit
This commit is contained in:
commit
05cd51b54e
148 changed files with 10112 additions and 0 deletions
31
.stversions/bar/ActiveWindow~20250107-005428.qml
Normal file
31
.stversions/bar/ActiveWindow~20250107-005428.qml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import QtQuick
|
||||
import Quickshell.Hyprland
|
||||
import ".."
|
||||
|
||||
Rectangle {
|
||||
width: 200;
|
||||
height: parent.height;
|
||||
|
||||
Text {
|
||||
id: windowText;
|
||||
text: "";
|
||||
color: ShellGlobals.colors.text;
|
||||
font.pointSize: 11;
|
||||
visible: text !== "";
|
||||
elide: Text.ElideRight;
|
||||
anchors {
|
||||
left: parent.left
|
||||
right: parent.right;
|
||||
verticalCenter: verticalCenter.parent;
|
||||
|
||||
Connections {
|
||||
target: Hyprland;
|
||||
|
||||
function onRawEvent(event) {
|
||||
if (event.name === "activewindow") {
|
||||
windowText.text = event.parse(2)[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue