Closed vician closed 7 years ago
If this feature is added I think it needs a flag in config.py to allow the user to configure if they want this functionality.
Additionally, I know your implementation will work on Debian/Ubuntu based distros, but I'm not sure it is entirely portable. (Although, at least it doesn't break support for anything AFAICT)
Edit: Double checked and it appears /sys/class/power_supply/BAT0/ is a feature of the kernel since 2.6, so this should work for all modern linux distros.
I had originally added the support for OS X and I know this won't work there where the 'pmset -g batt' command would be the appropriate way to check this. Maybe some people that use some of the other supported environments can help us figure out if the method you used works for them. In theory I think we have full support for some other *nix like operating systems like BSD assuming they use a supported desktop environment... we might have to add some platform specific stuff to make this feature work for everyone.
Thanks for your contribution, I think it's an interesting & useful one.
Just a few things:
False
.if status in [ "Discharging" ]:
instead of if status == "Discharging"
? :)Looking forward to merge. :)
Done in v2. :)
I don't want to use himawaripy while my battery is discharging.