Documentation
¶
Index ¶
- func AutoDiscoverProviders(registry *Registry, config *DiscoveryConfig) error
- func List() []string
- func Register(provider Provider) error
- func SetJSONProviderFactory(factory JSONProviderFactory)
- type CheatSheet
- type DMSBindsStatus
- type DiscoveryConfig
- type JSONProviderFactory
- type Keybind
- type Provider
- type Registry
- type WritableProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoDiscoverProviders ¶
func AutoDiscoverProviders(registry *Registry, config *DiscoveryConfig) error
func SetJSONProviderFactory ¶
func SetJSONProviderFactory(factory JSONProviderFactory)
Types ¶
type CheatSheet ¶
type DMSBindsStatus ¶
type DMSBindsStatus struct {
Exists bool `json:"exists"`
Included bool `json:"included"`
IncludePosition int `json:"includePosition"`
TotalIncludes int `json:"totalIncludes"`
BindsAfterDMS int `json:"bindsAfterDms"`
Effective bool `json:"effective"`
OverriddenBy int `json:"overriddenBy"`
StatusMessage string `json:"statusMessage"`
}
type DiscoveryConfig ¶
type DiscoveryConfig struct {
SearchPaths []string
}
func DefaultDiscoveryConfig ¶
func DefaultDiscoveryConfig() *DiscoveryConfig
func (*DiscoveryConfig) FindJSONFiles ¶
func (d *DiscoveryConfig) FindJSONFiles() ([]string, error)
type JSONProviderFactory ¶
type Keybind ¶
type Keybind struct {
Key string `json:"key"`
Description string `json:"desc"`
Action string `json:"action,omitempty"`
Subcategory string `json:"subcat,omitempty"`
Source string `json:"source,omitempty"`
HideOnOverlay bool `json:"hideOnOverlay,omitempty"`
CooldownMs int `json:"cooldownMs,omitempty"`
Flags string `json:"flags,omitempty"` // Hyprland bind flags: e=repeat, l=locked, r=release, o=long-press
AllowWhenLocked bool `json:"allowWhenLocked,omitempty"`
AllowInhibiting *bool `json:"allowInhibiting,omitempty"` // nil=default(true), false=explicitly disabled
Repeat *bool `json:"repeat,omitempty"` // nil=default(true), false=explicitly disabled
Conflict *Keybind `json:"conflict,omitempty"`
}
type Provider ¶
type Provider interface {
Name() string
GetCheatSheet() (*CheatSheet, error)
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func GetDefaultRegistry ¶
func GetDefaultRegistry() *Registry
func NewRegistry ¶
func NewRegistry() *Registry
Click to show internal directories.
Click to hide internal directories.