mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-07-11 18:05:03 +02:00
Update check-battery.ps1
This commit is contained in:
@ -29,7 +29,9 @@ try {
|
|||||||
$Reply = "✅ Battery charging... ($Percent%)"
|
$Reply = "✅ Battery charging... ($Percent%)"
|
||||||
}
|
}
|
||||||
} else { # must be offline
|
} else { # must be offline
|
||||||
if ($Remaining -le 5) {
|
if ($Remaining -eq 0) {
|
||||||
|
$Reply = "✅ Battery at $Percent%, calculating remaining time..."
|
||||||
|
} elseif ($Remaining -le 5) {
|
||||||
$Reply = "⚠️ Battery at $Percent%, ONLY $Remaining MIN remaining"
|
$Reply = "⚠️ Battery at $Percent%, ONLY $Remaining MIN remaining"
|
||||||
} elseif ($Remaining -le 30) {
|
} elseif ($Remaining -le 30) {
|
||||||
$Reply = "⚠️ Battery at $Percent%, only $Remaining min remaining"
|
$Reply = "⚠️ Battery at $Percent%, only $Remaining min remaining"
|
||||||
|
Reference in New Issue
Block a user