mirror of
https://github.com/anotherhadi/settuings.git
synced 2026-10-05 16:18:24 +02:00
24 lines
505 B
Go
24 lines
505 B
Go
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
|
|
}
|