Documentation
¶
Index ¶
- Variables
- type Battery
- type BatteryStatus
- type Daemon
- type Dock
- func (d *Dock) DoAction(action string) *dbus.Error
- func (d *Dock) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
- func (d *Dock) InterfaceName() string
- func (*Dock) Name() string
- func (d *Dock) ServiceName() string
- func (d *Dock) ServicePath() dbus.ObjectPath
- func (d *Dock) ServiceRun(conn *dbus.Conn, msg any)
- func (m *Dock) SetFlags(f *flag.FlagSet)
- func (*Dock) Synopsis() string
- func (d *Dock) Update() *dbus.Error
- func (*Dock) Usage() string
- type Monitor
- func (m *Monitor) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
- func (m *Monitor) InterfaceName() string
- func (*Monitor) Name() string
- func (m *Monitor) ServiceName() string
- func (m *Monitor) ServicePath() dbus.ObjectPath
- func (m *Monitor) ServiceRun(conn *dbus.Conn, msg any)
- func (m *Monitor) SetFlags(f *flag.FlagSet)
- func (*Monitor) Synopsis() string
- func (m *Monitor) Update() *dbus.Error
- func (*Monitor) Usage() string
- type Quote
- func (q *Quote) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
- func (q *Quote) GetQuote(msg string) (err *dbus.Error)
- func (q *Quote) InterfaceName() string
- func (*Quote) Name() string
- func (q *Quote) ServiceName() string
- func (q *Quote) ServicePath() dbus.ObjectPath
- func (q *Quote) ServiceRun(conn *dbus.Conn, msg any)
- func (q *Quote) SetFlags(f *flag.FlagSet)
- func (*Quote) Synopsis() string
- func (q *Quote) Update()
- func (*Quote) Usage() string
- type Submap
- func (s *Submap) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
- func (s *Submap) InterfaceName() string
- func (*Submap) Name() string
- func (s *Submap) ServiceName() string
- func (s *Submap) ServicePath() dbus.ObjectPath
- func (s *Submap) ServiceRun(conn *dbus.Conn, msg any)
- func (s *Submap) SetFlags(f *flag.FlagSet)
- func (*Submap) Synopsis() string
- func (*Submap) Usage() string
- type Title
- func (m *Title) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
- func (t *Title) InterfaceName() string
- func (t *Title) Name() string
- func (t *Title) ServiceName() string
- func (t *Title) ServicePath() dbus.ObjectPath
- func (t *Title) ServiceRun(conn *dbus.Conn, msg any)
- func (*Title) SetFlags(f *flag.FlagSet)
- func (*Title) Synopsis() string
- func (t *Title) Update() *dbus.Error
- func (*Title) Usage() string
- type Weather
- func (w *Weather) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
- func (w *Weather) GetWeather() (err *dbus.Error)
- func (w *Weather) InterfaceName() string
- func (*Weather) Name() string
- func (w *Weather) ServiceName() string
- func (w *Weather) ServicePath() dbus.ObjectPath
- func (w *Weather) ServiceRun(conn *dbus.Conn, msg any)
- func (w *Weather) SetFlags(f *flag.FlagSet)
- func (*Weather) Synopsis() string
- func (w *Weather) Update()
- func (*Weather) Usage() string
- type Workspaces
- func (w *Workspaces) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
- func (w *Workspaces) InterfaceName() string
- func (*Workspaces) Name() string
- func (w *Workspaces) ServiceName() string
- func (w *Workspaces) ServicePath() dbus.ObjectPath
- func (w *Workspaces) ServiceRun(conn *dbus.Conn, msg any)
- func (m *Workspaces) SetFlags(f *flag.FlagSet)
- func (*Workspaces) Synopsis() string
- func (w *Workspaces) Update() *dbus.Error
- func (*Workspaces) Usage() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BatteryChargingicons = []string{"", "", "", "", "", "", "", "", "", "", ""}
)
Define slice of batteryIcons
Functions ¶
This section is empty.
Types ¶
type Battery ¶
type Battery struct{}
func (*Battery) Execute ¶
func (m *Battery) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
Execute executes the check command.
type BatteryStatus ¶
type BatteryStatus struct { Enabled bool `json:"enabled"` Icon string `json:"icon"` Percentage int `json:"percentage"` Wattage float64 `json:"wattage"` Status string `json:"status"` Color string `json:"color"` }
Define slice of icons BatteryStatus represents the battery information
func (*BatteryStatus) String ¶
func (b *BatteryStatus) String() string
type Daemon ¶
type Daemon struct{}
func (*Daemon) Execute ¶
func (*Daemon) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
type Dock ¶
type Dock struct {
// contains filtered or unexported fields
}
func (*Dock) Execute ¶
func (d *Dock) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
Execute executes the check command.
func (*Dock) InterfaceName ¶
func (*Dock) ServiceName ¶
func (*Dock) ServicePath ¶
func (d *Dock) ServicePath() dbus.ObjectPath
func (*Dock) ServiceRun ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Submap is a comannd manager struct
func (*Monitor) Execute ¶
func (m *Monitor) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
Execute executes the check command.
func (*Monitor) InterfaceName ¶
func (*Monitor) ServiceName ¶
func (*Monitor) ServicePath ¶
func (m *Monitor) ServicePath() dbus.ObjectPath
func (*Monitor) ServiceRun ¶
type Quote ¶
Submap is a comannd manager struct
func (*Quote) Execute ¶
func (q *Quote) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
Execute executes the check command.
func (*Quote) InterfaceName ¶
func (*Quote) ServiceName ¶
func (*Quote) ServicePath ¶
func (q *Quote) ServicePath() dbus.ObjectPath
func (*Quote) ServiceRun ¶
type Submap ¶
type Submap struct{}
Submap is a comannd manager struct
func (*Submap) Execute ¶
func (s *Submap) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
Execute executes the check command.
func (*Submap) InterfaceName ¶
func (*Submap) ServiceName ¶
func (*Submap) ServicePath ¶
func (s *Submap) ServicePath() dbus.ObjectPath
func (*Submap) ServiceRun ¶
type Title ¶
type Title struct { CurrentName string // contains filtered or unexported fields }
func (*Title) Execute ¶
func (m *Title) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
Execute executes the check command.
func (*Title) InterfaceName ¶
func (*Title) ServiceName ¶
func (*Title) ServicePath ¶
func (t *Title) ServicePath() dbus.ObjectPath
func (*Title) ServiceRun ¶
type Weather ¶
type Weather struct { WeatherData string // contains filtered or unexported fields }
func (*Weather) Execute ¶
func (w *Weather) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
Execute executes the check command.
func (*Weather) GetWeather ¶
func (w *Weather) GetWeather() (err *dbus.Error)
func (*Weather) InterfaceName ¶
func (*Weather) ServiceName ¶
func (*Weather) ServicePath ¶
func (w *Weather) ServicePath() dbus.ObjectPath
func (*Weather) ServiceRun ¶
type Workspaces ¶
type Workspaces struct {
// contains filtered or unexported fields
}
Submap is a comannd manager struct
func (*Workspaces) Execute ¶
func (w *Workspaces) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus
Execute executes the check command.
func (*Workspaces) InterfaceName ¶
func (w *Workspaces) InterfaceName() string
func (*Workspaces) Name ¶
func (*Workspaces) Name() string
func (*Workspaces) ServiceName ¶
func (w *Workspaces) ServiceName() string
func (*Workspaces) ServicePath ¶
func (w *Workspaces) ServicePath() dbus.ObjectPath
func (*Workspaces) ServiceRun ¶
func (w *Workspaces) ServiceRun(conn *dbus.Conn, msg any)
func (*Workspaces) SetFlags ¶
func (m *Workspaces) SetFlags(f *flag.FlagSet)
SetFlags adds the check flags to the specified set.
func (*Workspaces) Synopsis ¶
func (*Workspaces) Synopsis() string
func (*Workspaces) Update ¶
func (w *Workspaces) Update() *dbus.Error
func (*Workspaces) Usage ¶
func (*Workspaces) Usage() string
Click to show internal directories.
Click to hide internal directories.