Last active
July 28, 2023 17:26
-
-
Save renegarcia/09e983be8da8db85308e6c7f740dcf2c to your computer and use it in GitHub Desktop.
Show battery status cli
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
#!/usr/bin/bash | |
upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state|to full| percentage" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If using fish shell, you can also add as an abbrevation (alias) in your
config.fish
file like so:Source