import Quickshell import QtQuick import Quickshell.Widgets import Quickshell.Wayland import qs.Services Item { id: root required property var window width: icon.width + 8 height: parent.height anchors.verticalCenter: parent.verticalCenter IdleInhibitor { id: inhibitor enabled: InhibitorState.waylandIdleInhibited window: root.window } WrapperMouseArea { id: widgetMouseArea anchors.fill: parent hoverEnabled: true onClicked: InhibitorState.waylandIdleInhibited = !InhibitorState.waylandIdleInhibited Rectangle { anchors.fill: parent color: { if (widgetMouseArea.containsMouse) { return "#33808080"; } return "transparent"; } Item { anchors.fill: parent MaterialDesignIcon { id: icon implicitSize: 14 anchors.centerIn: parent icon: inhibitor.enabled ? "eye" : "eye-off" color: inhibitor.enabled ? "white" : "#555" } } } } }