tmux-plugins / tmux-battery

Plug and play battery percentage and icon indicator for Tmux.
MIT License
503 stars 98 forks source link

Two Battery Laptop (Lenovo Thinkpad T70s) #99

Open suzibrix opened 3 years ago

suzibrix commented 3 years ago

My laptop is an over achiever and has two batteries. BAT0 and BAT1. Only BAT0 shows up in tmux. While helpful, it only shows me accurate status info when BAT0 acted on. Is this something that would need extra lines in the script, or is this something I could accommodate in settings?

incebellipipo commented 3 years ago

Use this:

#(echo $(for i in `cat /sys/class/power_supply/*/capacity` ; do echo $i% ; done))