iinsertNameHere / catnap

A highly customizable systemfetch written in nim
https://catnap-fetch.xyz
MIT License
174 stars 10 forks source link

Add Battery Stat #117

Closed yuki-was-taken closed 4 months ago

yuki-was-taken commented 4 months ago

Is your pull request linked to an existing issue?

115

What is your pull request about?:

Adds a battery stat. How it works is Catnap uses a regex search to find the default battery in /sys/class/power_supply/.

Any other disclosures/notices/things to add?

I'm still looking for a way to set the chosen battery in config.toml. Contributions appreciated.

Credits to https://gitlab.com/prashere/battinfo for the regex stuff.

iinsertNameHere commented 4 months ago

Thx! :)