From 8cd9e3429452983cb00df2968b022a0c8c32f397 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 19 May 2026 10:48:28 +0200 Subject: [PATCH] Tweak idle inhibitor --- shell/plugins/bar/widgets/idleInhibitor.qml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/shell/plugins/bar/widgets/idleInhibitor.qml b/shell/plugins/bar/widgets/idleInhibitor.qml index 111049c0..2d6b29c8 100644 --- a/shell/plugins/bar/widgets/idleInhibitor.qml +++ b/shell/plugins/bar/widgets/idleInhibitor.qml @@ -12,7 +12,7 @@ Item { property bool active: false - readonly property string icon: active ? "󰅶" : "󰛊" + readonly property string icon: active ? "󰅶" : "" function refresh() { if (!statusProc.running) statusProc.running = true @@ -55,16 +55,17 @@ Item { onTriggered: root.refresh() } - implicitWidth: button.implicitWidth - implicitHeight: button.implicitHeight + visible: active + implicitWidth: visible ? button.implicitWidth : 0 + implicitHeight: visible ? button.implicitHeight : 0 WidgetButton { id: button anchors.fill: parent bar: root.bar text: root.icon - active: root.active - tooltipText: root.active ? "Staying awake — click to allow idle" : "Can idle — click to stay awake" + active: false + tooltipText: root.active ? "No sleep, lock, or screensaver" : "" onPressed: function() { root.toggle() } } }