Updated the manuals

This commit is contained in:
Markus Fleschutz
2025-01-17 08:31:53 +01:00
parent efe4a2c6b4
commit 33ef92d879
635 changed files with 2375 additions and 1666 deletions

View File

@@ -6,7 +6,7 @@ This PowerShell script queries the power status and prints it.
Parameters
----------
```powershell
/home/markus/Repos/PowerShell/scripts/check-power.ps1 [<CommonParameters>]
/Repos/PowerShell/scripts/check-power.ps1 [<CommonParameters>]
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@@ -61,9 +61,9 @@ try {
if ($details.BatteryChargeStatus -eq "NoSystemBattery") {
$reply = "✅ AC powered"
} elseif ($percent -ge 95) {
$reply = "✅ Battery nearly full ($percent%, power scheme is '$powerScheme')"
$reply = "✅ Battery full ($percent%, power scheme is '$powerScheme')"
} else {
$reply = "✅ Battery $percent% and charging (power scheme is '$powerScheme')"
$reply = "✅ Battery charging ($percent%, power scheme is '$powerScheme')"
}
} else { # must be offline
if (($remaining -eq 0) -and ($percent -ge 60)) {
@@ -71,13 +71,13 @@ try {
} elseif ($remaining -eq 0) {
$reply = "✅ Battery at $percent% (power scheme is '$powerScheme')"
} elseif ($remaining -le 5) {
$reply = "⚠️ Battery $percent% ONLY $($remaining)min remaining (power scheme is '$powerScheme')"
$reply = "⚠️ Battery LOW ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
} elseif ($remaining -le 30) {
$reply = "⚠️ Battery $percent% only $($remaining)min remaining (power scheme is '$powerScheme')"
$reply = "⚠️ Battery low ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
} elseif ($percent -lt 10) {
$reply = "⚠️ Battery $percent% only with $($remaining)min remaining (power scheme is '$powerScheme') "
} elseif ($percent -ge 90) {
$reply = "✅ Battery $percent% full with $($remaining)min remaining (power scheme is '$powerScheme')"
$reply = "✅ Battery full ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
} else {
$reply = "✅ Battery $percent% with $($remaining)min remaining (power scheme is '$powerScheme') "
}
@@ -91,4 +91,4 @@ try {
}
```
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:51)*
*(page generated by convert-ps2md.ps1 as of 01/17/2025 08:30:51)*