Added commands for remaining battery backup time and percentage.
This commit is contained in:
parent
dfd16a8fca
commit
c3ad131803
15
README.md
15
README.md
@ -65,6 +65,7 @@ If you want to contribute, you are highly encouraged to do so. Please read the [
|
|||||||
- [AirDrop](#airdrop)
|
- [AirDrop](#airdrop)
|
||||||
- [AppleScript](#applescript)
|
- [AppleScript](#applescript)
|
||||||
- [Basics](#basics)
|
- [Basics](#basics)
|
||||||
|
- [Battery Status](#battery-status)
|
||||||
- [Clipboard](#clipboard)
|
- [Clipboard](#clipboard)
|
||||||
- [FileVault](#filevault)
|
- [FileVault](#filevault)
|
||||||
- [Information/Reports](#informationreports)
|
- [Information/Reports](#informationreports)
|
||||||
@ -875,6 +876,20 @@ How long since your last restart.
|
|||||||
uptime
|
uptime
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Battery Status
|
||||||
|
|
||||||
|
#### Battery Percentage
|
||||||
|
Remaining battery in percentage.
|
||||||
|
```bash
|
||||||
|
pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto | cut -f1 -d';'
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Remaining Batter Time
|
||||||
|
Remaining battery backup time.
|
||||||
|
```bash
|
||||||
|
pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto | cut -f3 -d';'
|
||||||
|
```
|
||||||
|
|
||||||
### Clipboard
|
### Clipboard
|
||||||
|
|
||||||
#### Copy data to Clipboard
|
#### Copy data to Clipboard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user