summaryrefslogtreecommitdiff
path: root/bar/ActiveWindow.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-11 21:49:53 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-11 21:49:53 +0800
commit0e4bdc7ed815ef389d9ca95fc4865f46701b1aaf (patch)
tree09c5e1609a4e3526416ae6bd294fb003d58ec70a /bar/ActiveWindow.qml
parentbf44811dced54246317c51183b2c77b551fafb79 (diff)
activewindow
Diffstat (limited to 'bar/ActiveWindow.qml')
-rw-r--r--bar/ActiveWindow.qml23
1 files changed, 23 insertions, 0 deletions
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
+ }
+}