Battery
Battery copied to clipboard
Battery is a bash script to display your Laptop's battery status on the terminal.
Some linux distribution like elementary os has directory named `upstream-release`. In this case cat execution encountered error with upstream-release is directory. So I replaced cat to grep for exclude check...
I just found out that Linux Mint uses the same format as the other systems detected in this snippet, it's useful to add it.
Hi, I have successfully installed battery and spark using brew. But when I run the battery command I get a blank line. Any thoughts? Thank you. Btw, I'm using zsh+iterm
The [arch-ubuntu-suse](https://github.com/Goles/Battery/blob/master/battery#L80) flow looks buggy: ``` battery_state=$(cat $battery_path/energy_now) battery_current=$battery_path/energy_now ... if [ $battery_state == 'Discharging' ]; then ... now=$(cat $battery_current) full=$(cat $battery_full) BATT_PCT=$((100 * $now / $full)) ``` Note `$now`...
I see there's some [logic](https://github.com/Goles/Battery/blob/master/battery#L78) for specific flavors of linux, but I'm not convinced this is entirely dependent on distribution. I'm running same version of debian on different hardware (HP...
i) either remove from README ii) implement it. :) ``` ➜ ~ battery -e Invalid option: -e ➜ ~ ```
`connected` was previously replaced with `BATT_CONNECTED`