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 }