Add "power" page

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-08-13 12:10:09 +02:00
parent d54817d62c
commit 7067717b51
23 changed files with 1005 additions and 20 deletions
+23
View File
@@ -0,0 +1,23 @@
package power
import "github.com/anotherhadi/settuings/internal/power"
// checkMsg carries the result of power.CheckAvailable (powerprofilesctl).
type checkMsg struct{ err error }
// tickMsg triggers a periodic refresh of profiles + battery while this page
// is active.
type tickMsg struct{}
type profilesMsg struct {
profiles []power.Profile
err error
}
type setProfileMsg struct{ err error }
type batteryMsg struct {
batteries []power.Battery
ac power.ACStatus
err error
}