power

package
v0.0.0-...-71090b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModule

func GetModule() common.Module

Types

type Power

type Power struct {
	Name        string
	Description string
	Slug        string
	// contains filtered or unexported fields
}

func (*Power) GetDescription

func (m *Power) GetDescription() string

func (*Power) GetLastRun

func (m *Power) GetLastRun() string

func (*Power) GetName

func (m *Power) GetName() string

func (*Power) GetRunInterval

func (m *Power) GetRunInterval() int64

func (*Power) GetRunIntervalOnBattery

func (m *Power) GetRunIntervalOnBattery() int64

func (*Power) GetSlug

func (m *Power) GetSlug() string

func (*Power) GetWaybarOutput

func (m *Power) GetWaybarOutput() (*common.WaybarOutput, error)

func (*Power) IsEnabled

func (m *Power) IsEnabled() bool

func (*Power) Run

func (m *Power) Run() error

func (*Power) RunCommand

func (m *Power) RunCommand(name string, args []string) error

func (*Power) SaveLastRun

func (m *Power) SaveLastRun()

func (*Power) SuspendOnBattery

func (m *Power) SuspendOnBattery() bool

func (*Power) WriteOutput

func (m *Power) WriteOutput() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL