diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 93fd216..7293e3f 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -2,6 +2,7 @@ import QtQuick import Quickshell import Quickshell.Hyprland import "./widgets" +import "./states/Idle" import "../../config" PanelWindow { @@ -25,6 +26,10 @@ PanelWindow { right: 0 } + Component.onCompleted: { + IdleState.panelWindow = panel + } + Rectangle { // Bar id: bar anchors.fill: parent @@ -72,7 +77,7 @@ PanelWindow { AudioSink{} Battery{} Network{} - IdleButton { panelWindow: panel } + IdleButton {} PowerButton{} }