diff --git a/README.md b/README.md index a4733e01..c25dc13e 100644 --- a/README.md +++ b/README.md @@ -307,10 +307,6 @@ default, you must create it manually. { "id": "power", "enabled": true - }, - { - "id": "idleInhibitor", - "enabled": false } ], "persistent": true, diff --git a/config/BarConfig.qml b/config/BarConfig.qml index 4815259c..bbfc20bf 100644 --- a/config/BarConfig.qml +++ b/config/BarConfig.qml @@ -47,10 +47,6 @@ JsonObject { { id: "power", enabled: true - }, - { - id: "idleInhibitor", - enabled: false } ] diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 9cd5d24b..ea7ec7f5 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -143,12 +143,6 @@ ColumnLayout { } } } - DelegateChoice { - roleValue: "idleInhibitor" - delegate: WrappedLoader { - sourceComponent: IdleInhibitor {} - } - } } } diff --git a/modules/bar/components/IdleInhibitor.qml b/modules/bar/components/IdleInhibitor.qml deleted file mode 100644 index 51e09ed2..00000000 --- a/modules/bar/components/IdleInhibitor.qml +++ /dev/null @@ -1,33 +0,0 @@ -import qs.components -import qs.services -import qs.config -import Quickshell -import QtQuick - -StyledRect { - id: root - - implicitWidth: implicitHeight - implicitHeight: icon.implicitHeight + Appearance.padding.small * 2 - - radius: Appearance.rounding.full - color: Qt.alpha(Colours.palette.m3primaryContainer, IdleInhibitor.enabled ? 1 : 0) - - StateLayer { - function onClicked(): void { - IdleInhibitor.enabled = !IdleInhibitor.enabled; - } - } - - MaterialIcon { - id: icon - - anchors.centerIn: parent - anchors.horizontalCenterOffset: -1 - - text: "coffee" - color: IdleInhibitor.enabled ? Colours.palette.m3onPrimaryContainer : Colours.palette.m3secondary - font.bold: true - font.pointSize: Appearance.font.size.normal - } -}