Added remaining battery time and percentage to hardware information
This commit is contained in:
parent
c3ad131803
commit
448e2e43f1
25
README.md
25
README.md
@ -65,7 +65,6 @@ 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)
|
||||||
@ -498,6 +497,16 @@ atsutil server -ping
|
|||||||
networksetup -listallhardwareports
|
networksetup -listallhardwareports
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Remaining Battery Percentage
|
||||||
|
```bash
|
||||||
|
pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto | cut -f1 -d';'
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Remaining Battery Time
|
||||||
|
```bash
|
||||||
|
pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto | cut -f3 -d';'
|
||||||
|
```
|
||||||
|
|
||||||
#### Show Connected Device's UDID
|
#### Show Connected Device's UDID
|
||||||
```bash
|
```bash
|
||||||
system_profiler SPUSBDataType | sed -n -e '/iPad/,/Serial/p' -e '/iPhone/,/Serial/p'
|
system_profiler SPUSBDataType | sed -n -e '/iPad/,/Serial/p' -e '/iPhone/,/Serial/p'
|
||||||
@ -876,20 +885,6 @@ 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…
Reference in New Issue
Block a user