You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
batfetch errors out with power_now': No such file or directory, energy_now': No such file or directory and /1000000: syntax error: operand expected (error token is "/1000000").ย #7
When I run batfetch, checkout just from today (git commit hash 196329f), it errors out for me with
๐ฌญ๐ฌญ๐ฌญโโโโโ๐ฌญ๐ฌญ๐ฌญ
โ โ <censored>@<censored>-winmax2
โ โ model Standard SR Real Battery
cat: '/sys/class/power_supply/BAT*/energy_now': No such file or directory
cat: '/sys/class/power_supply/BAT*/power_now': No such file or directory
/usr/bin/batfetch: line 140: [: =: unary operator expected
(standard_in) 1: syntax error
๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ charge 100% h 0m
cat: '/sys/class/power_supply/BAT*/power_now': No such file or directory
/usr/bin/batfetch: line 153: /1000000: syntax error: operand expected (error token is "/1000000")
My system has current_now and charge_now instead of power_now and energy_now.
I have made a script that handle the different cases and displays the correct units -- you can feel inspired by it if you want: linux-terminal-battery-status.sh.