From 31f2184dc67984fd127041c02e0d32acb472ae86 Mon Sep 17 00:00:00 2001 From: EinBowser <146022965+EinBowser@users.noreply.github.com> Date: Tue, 4 Nov 2025 15:58:01 +0100 Subject: [PATCH] Removed settings and configs for battery health --- dots/.config/quickshell/ii/modules/bar/BatteryPopup.qml | 2 +- dots/.config/quickshell/ii/modules/common/Config.qml | 1 - .../quickshell/ii/modules/settings/GeneralConfig.qml | 8 -------- dots/.config/quickshell/ii/services/Battery.qml | 3 --- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/bar/BatteryPopup.qml b/dots/.config/quickshell/ii/modules/bar/BatteryPopup.qml index 6e4bf1c9e..47345ee1f 100644 --- a/dots/.config/quickshell/ii/modules/bar/BatteryPopup.qml +++ b/dots/.config/quickshell/ii/modules/bar/BatteryPopup.qml @@ -86,7 +86,7 @@ StyledPopup { RowLayout { spacing: 5 - visible: Config.options.battery.showHealth && Battery.health > 0 + visible: Battery.health > 0 Layout.fillWidth: true MaterialSymbol { diff --git a/dots/.config/quickshell/ii/modules/common/Config.qml b/dots/.config/quickshell/ii/modules/common/Config.qml index 7e82e87d0..39c0ef131 100644 --- a/dots/.config/quickshell/ii/modules/common/Config.qml +++ b/dots/.config/quickshell/ii/modules/common/Config.qml @@ -257,7 +257,6 @@ Singleton { property int full: 101 property bool automaticSuspend: true property int suspend: 3 - property bool showHealth: false } property JsonObject conflictKiller: JsonObject { diff --git a/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml b/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml index 3be552b9c..c2ea1f930 100644 --- a/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml +++ b/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml @@ -127,14 +127,6 @@ ContentPage { } } } - ConfigSwitch { - buttonIcon: "healing" - text: Translation.tr('Show battery health in popup') - checked: Config.options.battery.showHealth - onCheckedChanged: { - Config.options.battery.showHealth = checked; - } - } } ContentSection { diff --git a/dots/.config/quickshell/ii/services/Battery.qml b/dots/.config/quickshell/ii/services/Battery.qml index 849870cd2..f368b8203 100644 --- a/dots/.config/quickshell/ii/services/Battery.qml +++ b/dots/.config/quickshell/ii/services/Battery.qml @@ -32,9 +32,6 @@ Singleton { property real timeToFull: UPower.displayDevice.timeToFull property real health: (function() { - if (!Config.options.battery.showHealth) { - return 0; - } const devList = UPower.devices.values; for (let i = 0; i < devList.length; ++i) { const dev = devList[i];