mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
bar: don't show battery indicator on desktkop
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user