From 67be162f20dd10bfd566e1f24cffd5cd0e52ec52 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 24 May 2025 11:54:21 +0200 Subject: [PATCH] bar: don't show battery indicator on desktkop --- .config/quickshell/modules/bar/Bar.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/quickshell/modules/bar/Bar.qml b/.config/quickshell/modules/bar/Bar.qml index 7e0f30242..5402b14ec 100644 --- a/.config/quickshell/modules/bar/Bar.qml +++ b/.config/quickshell/modules/bar/Bar.qml @@ -12,6 +12,7 @@ import Quickshell.Wayland import Quickshell.Hyprland import Quickshell.Io import Quickshell.Services.Mpris +import Quickshell.Services.UPower Scope { id: bar @@ -237,7 +238,7 @@ Scope { } Battery { - visible: barRoot.useShortenedForm < 2 + visible: (barRoot.useShortenedForm < 2 && UPower.displayDevice.isLaptopBattery) Layout.alignment: Qt.AlignVCenter }