app

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KanataStatus added in v0.2.0

type KanataStatus string

type LayerIcons

type LayerIcons struct {
	// contains filtered or unexported fields
}

func ResolveIcons

func ResolveIcons(configFolder string, cfg *config.Config) LayerIcons

func (LayerIcons) IconForLayerName

func (c LayerIcons) IconForLayerName(presetName string, layerName string) []byte

Order of resolution: preset -> global -> preset_wildcard -> global_wildcard -> default

Returns nil if resolution yields no icon. Caller should then use global default icon.

func (LayerIcons) MappedLayers added in v0.2.0

func (c LayerIcons) MappedLayers(presetName string) []string

type LayerIconsForPreset added in v0.2.0

type LayerIconsForPreset struct {
	// contains filtered or unexported fields
}

type PresetMenuEntry added in v0.2.0

type PresetMenuEntry struct {
	IsSelectable bool
	Preset       config.Preset
	PresetName   string
}
func MenuTemplateFromConfig(cfg config.Config) ([]PresetMenuEntry, error)

func (*PresetMenuEntry) Title added in v0.2.0

func (m *PresetMenuEntry) Title(status KanataStatus) string

func (*PresetMenuEntry) Tooltip added in v0.2.0

func (m *PresetMenuEntry) Tooltip() string

type SystrayApp added in v0.2.0

type SystrayApp struct {
	// contains filtered or unexported fields
}

func NewSystrayApp

func NewSystrayApp(menuTemplate []PresetMenuEntry, layerIcons LayerIcons, allowConcurrentPresets bool) *SystrayApp

func (*SystrayApp) StartProcessingLoop added in v0.2.0

func (app *SystrayApp) StartProcessingLoop(runner *runner_pkg.Runner, configFolder string)

Jump to

Keyboard shortcuts

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