From 8bc2cf335b70b120f4867f9ef0c0ccd4c7202137 Mon Sep 17 00:00:00 2001 From: Jojo Date: Thu, 2 Oct 2025 23:39:20 +0200 Subject: [PATCH] lock: add reboot button (#2086) * lock: added reboot button * lock: reorder reboot/shutdown buttons --------- Co-authored-by: end-4 <97237370+end-4@users.noreply.github.com> --- .../quickshell/ii/modules/lock/LockSurface.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.config/quickshell/ii/modules/lock/LockSurface.qml b/.config/quickshell/ii/modules/lock/LockSurface.qml index 62137adfa..14fcf4a6a 100644 --- a/.config/quickshell/ii/modules/lock/LockSurface.qml +++ b/.config/quickshell/ii/modules/lock/LockSurface.qml @@ -286,5 +286,21 @@ MouseArea { color: Appearance.colors.colOnSurfaceVariant } } + + ToolbarButton { + id: rebootButton + implicitWidth: height + + onClicked: Session.reboot() + + contentItem: MaterialSymbol { + anchors.centerIn: parent + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + iconSize: 24 + text: "restart_alt" + color: Appearance.colors.colOnSurfaceVariant + } + } } }