Created
September 24, 2017 14:30
-
-
Save diversen/6aa4f2ab09b2c9ac69e348cc4d7683ba to your computer and use it in GitHub Desktop.
shell script which show percentage of battery left
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
upower -i $(upower -e | grep 'BAT') | grep -E "state|to\ full|percentage" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment