From 23af50a30d533e3313ea576f43fe751750d112bb Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 16 Aug 2025 08:38:58 +0700 Subject: [PATCH] vertical bar: hide battery when not available --- .config/quickshell/ii/modules/bar/BarContent.qml | 3 --- .../quickshell/ii/modules/verticalBar/VerticalBarContent.qml | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.config/quickshell/ii/modules/bar/BarContent.qml b/.config/quickshell/ii/modules/bar/BarContent.qml index dcfb6616d..ead5d8c83 100644 --- a/.config/quickshell/ii/modules/bar/BarContent.qml +++ b/.config/quickshell/ii/modules/bar/BarContent.qml @@ -2,9 +2,6 @@ import "./weather" import QtQuick import QtQuick.Layouts import Quickshell -import Quickshell.Io -import Quickshell.Wayland -import Quickshell.Hyprland import Quickshell.Services.UPower import qs import qs.services diff --git a/.config/quickshell/ii/modules/verticalBar/VerticalBarContent.qml b/.config/quickshell/ii/modules/verticalBar/VerticalBarContent.qml index 42e71026e..976d3d448 100644 --- a/.config/quickshell/ii/modules/verticalBar/VerticalBarContent.qml +++ b/.config/quickshell/ii/modules/verticalBar/VerticalBarContent.qml @@ -1,9 +1,6 @@ import QtQuick import QtQuick.Layouts import Quickshell -import Quickshell.Io -import Quickshell.Wayland -import Quickshell.Hyprland import Quickshell.Services.UPower import qs import qs.services @@ -198,6 +195,7 @@ Item { // Bar content region } BatteryIndicator { + visible: UPower.displayDevice.isLaptopBattery Layout.fillWidth: true Layout.fillHeight: false }