From 8d1b9a2ea0d8a6565cd3971f032d9ecabae2db1d Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 10 Mar 2026 08:13:31 +0100 Subject: [PATCH] hefty: bar: add power button widget --- .../topLayer/bar/widgets/HPowerButton.qml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HPowerButton.qml diff --git a/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HPowerButton.qml b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HPowerButton.qml new file mode 100644 index 000000000..0859cab2d --- /dev/null +++ b/dots/.config/quickshell/ii/modules/hefty/topLayer/bar/widgets/HPowerButton.qml @@ -0,0 +1,27 @@ +pragma ComponentBehavior: Bound +import QtQuick + +import qs +import qs.modules.common.widgets +import ".." + +HBarWidgetWithPopout { + id: root + + HBarWidgetContent { + id: contentRoot + vertical: root.vertical + atBottom: root.atBottom + contentImplicitWidth: symbol.implicitWidth + contentImplicitHeight: symbol.implicitHeight + showPopup: false + onClicked: GlobalStates.sessionOpen = true; + + MaterialSymbol { + id: symbol + anchors.centerIn: parent + iconSize: 20 + text: "power_settings_new" + } + } +}