ly/res
Lars Engels cf731dbce1 Add battery capacity support on FreeBSD (#988)
## What are the changes about?

So far ly only supported showing battery capacity on Linux. This adds support for FreeBSD as well using `sysctlbyname()` instead of reading from `/sys/...`

## What existing issue does this resolve?

No battery shown on FreeBSD.

_Replace this with a reference to an existing issue, or N/A if there is none_

## Pre-requisites

- [x] I have tested & confirmed the changes work locally
- [x] I have run `zig fmt` throughout my changes

Co-authored-by: AnErrupTion <anerruption+codeberg@disroot.org>
Co-authored-by: AnErrupTion <anerruption@disroot.org>
Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/988
Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
2026-07-05 21:19:30 +02:00
..
custom-sessions
lang Minor pt_BR translation correction to sound more natural (#1018) 2026-06-14 21:59:15 +02:00
ly-runit-service
ly-s6
pam.d Fix authentication error with ly-freebsd-autologin (#1020) 2026-07-03 18:37:40 +02:00
config.ini Add battery capacity support on FreeBSD (#988) 2026-07-05 21:19:30 +02:00
example.dur
example.lua Fix example.lua doc + add ly-community in README 2026-06-19 20:18:45 +02:00
ly-dinit
ly-freebsd-wrapper
ly-kmsconvt@.service ly-kmsconvt: Set TERM=linux 2026-05-30 12:17:06 +02:00
ly-openrc
ly-sysvinit
ly@.service
setup.sh
startup.sh