From 0e4bdc7ed815ef389d9ca95fc4865f46701b1aaf Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 11 Jul 2025 21:49:53 +0800 Subject: activewindow --- bar/ActiveWindow.qml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 bar/ActiveWindow.qml (limited to 'bar/ActiveWindow.qml') diff --git a/bar/ActiveWindow.qml b/bar/ActiveWindow.qml new file mode 100644 index 0000000..efdbfd9 --- /dev/null +++ b/bar/ActiveWindow.qml @@ -0,0 +1,23 @@ +import QtQuick +import Quickshell +import Quickshell.Wayland +import Quickshell.Widgets +import qs.utils + +Item { + id: root + property var toplevel: ToplevelManager.activeToplevel + property var icon: Quickshell.iconPath(AppSearch.guessIcon(toplevel?.appId), "image-missing") + + IconImage { + source: root.icon + implicitWidth: 32 + implicitHeight: 32 + anchors.verticalCenter: parent.verticalCenter + anchors.left: parent.left + anchors.leftMargin: 8 + } + Text { + text: root.toplevel?.title + } +} -- cgit v1.2.3