quickshell: nuke kded6 when starting

This commit is contained in:
2025-10-14 01:28:38 +02:00
parent ba6c735850
commit fcf2dea615
15 changed files with 62 additions and 19 deletions

View File

@@ -9,13 +9,14 @@ MonitorItem {
readonly property bool isReady: (battery && battery.ready && battery.isLaptopBattery && battery.isPresent)
readonly property real percent: (isReady ? (battery.percentage * 100) : 0)
readonly property bool charging: (isReady ? battery.state === UPowerDeviceState.Charging : false)
property int lowBatteryThreshold: 15
property int lowBatteryThreshold: 20
symbol: {
return charging ? Icons.charging : percent >= 80 ? Icons.battery100 : percent >= 60 ? Icons.battery75 : percent >= 40 ? Icons.battery50 : percent >= 20 ? Icons.battery25 : Icons.battery00;
}
fillColor: !isReady || charging || percent > lowBatteryThreshold ? Colors.sapphire : Colors.red
fillColor: Colors.sapphire
value: percent
critical: isReady && !charging && percent <= lowBatteryThreshold
maxValue: 100
textSuffix: "%"
pointerCursor: false