pfetch icon indicating copy to clipboard operation
pfetch copied to clipboard

Added get_battery to display battery status

Open alvar0liveira opened this issue 4 years ago • 1 comments

Added get_battery to display battery level and status

alvar0liveira avatar Dec 18 '20 11:12 alvar0liveira

This isn't portable, consider adding options for different OS's, such as apm on OpenBSD. Also, using a wildcard here would cause issues if multiple batteries are present.

Also, since these proc files are only one line, you might as well use read varname < filename instead of varname="$(cat filename)".

rachelambda avatar Jan 15 '21 13:01 rachelambda