Merge pull request #37 from scottydelta/master

Added remaining battery time and percentage to hardware information
This commit is contained in:
Marcel Bischoff 2015-10-23 10:02:47 +02:00
commit 960937a497

View File

@ -497,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'