summaryrefslogtreecommitdiff
path: root/bar/ActiveWindow.qml
diff options
context:
space:
mode:
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
+ }
+}