forked from Shinonome/dots-hyprland
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.Hyprland
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
import Quickshell.Services.Mpris
|
import Quickshell.Services.Mpris
|
||||||
|
import Quickshell.Services.UPower
|
||||||
|
|
||||||
Scope {
|
Scope {
|
||||||
id: bar
|
id: bar
|
||||||
@@ -237,7 +238,7 @@ Scope {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Battery {
|
Battery {
|
||||||
visible: barRoot.useShortenedForm < 2
|
visible: (barRoot.useShortenedForm < 2 && UPower.displayDevice.isLaptopBattery)
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user