Documentation
¶
Index ¶
- Variables
- func Init(config string) error
- func MergeLayouts(theme, base string)
- func SetupConfigOnDisk()
- func SetupDefaultThemeOnDisk()
- func WriteUserConfig()
- type AI
- type AIPrompt
- type ActivationLabelWidget
- type ActivationMode
- type ActivationModifiers
- type AiKeys
- type AiListWrapper
- type AiScroll
- type Anchors
- type Anthropic
- type ApplicationActions
- type Applications
- type Bar
- type BarEntry
- type BarEntryWrapper
- type BarWrapper
- type Blacklist
- type BlacklistItems
- type BookmarkEntry
- type BookmarkGroup
- type Bookmarks
- type Box
- type BoxWidget
- type Builtins
- type Calc
- type Clipboard
- type Commands
- type Config
- type CustomCommand
- type CustomCommands
- type Dmenu
- type Emojis
- type EventType
- type Events
- type Finder
- type Gemini
- type GeneralModule
- type HyprlandKeybinds
- type ImageWidget
- type Keys
- type LabelWidget
- type List
- type ListItemWidget
- type ListWrapper
- type Margins
- type Plugin
- type PromptWidget
- type Runner
- type SSH
- type Scroll
- type Search
- type SearchWidget
- type SearchWrapper
- type SpinnerWidget
- type Switcher
- type SwitcherAvailable
- type Symbols
- type TextWrapper
- type Translation
- type UI
- type UICfg
- type Websearch
- type WebsearchEntry
- type Widget
- type Window
- type Windows
- type XdphPicker
Constants ¶
This section is empty.
Variables ¶
View Source
var Themes embed.FS
Functions ¶
func MergeLayouts ¶ added in v0.13.2
func MergeLayouts(theme, base string)
func SetupConfigOnDisk ¶ added in v0.12.3
func SetupConfigOnDisk()
func SetupDefaultThemeOnDisk ¶ added in v0.12.3
func SetupDefaultThemeOnDisk()
func WriteUserConfig ¶ added in v0.12.14
func WriteUserConfig()
Types ¶
type AI ¶ added in v0.9.0
type AI struct {
GeneralModule `koanf:",squash"`
Anthropic Anthropic `koanf:"anthropic"`
Gemini Gemini `koanf:"gemini"`
}
type ActivationLabelWidget ¶
type ActivationLabelWidget struct {
LabelWidget `koanf:",squash"`
Overlay bool `koanf:"overlay"`
HideModifier bool `koanf:"hide_modifier"`
}
type ActivationMode ¶
type ActivationModifiers ¶ added in v0.11.0
type AiListWrapper ¶ added in v0.9.2
type AiListWrapper struct {
BoxWidget `koanf:",squash"`
Item LabelWidget `koanf:"item"`
}
type AiScroll ¶ added in v0.9.0
type AiScroll struct {
Widget `koanf:",squash"`
List AiListWrapper `koanf:"list"`
OverlayScrolling bool `koanf:"overlay_scrolling"`
HScrollbarPolicy string `koanf:"h_scrollbar_policy"`
VScrollbarPolicy string `koanf:"v_scrollbar_policy"`
}
type ApplicationActions ¶ added in v0.9.10
type Applications ¶
type Applications struct {
GeneralModule `koanf:",squash"`
Actions ApplicationActions `koanf:"actions"`
Cache bool `koanf:"cache"`
ContextAware bool `koanf:"context_aware"`
PrioritizeNew bool `koanf:"prioritize_new"`
ShowGeneric bool `koanf:"show_generic"`
}
type BarEntryWrapper ¶ added in v0.8.0
type BarEntryWrapper struct {
BoxWidget `koanf:",squash"`
Icon ImageWidget `koanf:"icon"`
Label LabelWidget `koanf:"label"`
}
type BarWrapper ¶ added in v0.8.0
type BarWrapper struct {
BoxWidget `koanf:",squash"`
Position string `koanf:"position"`
Entry BarEntryWrapper `koanf:"entry"`
}
type Blacklist ¶ added in v0.10.4
type BlacklistItems ¶ added in v0.13.2
type BlacklistItems []Blacklist
type BookmarkEntry ¶ added in v0.10.0
type BookmarkGroup ¶ added in v0.10.1
type BookmarkGroup struct {
Entries []BookmarkEntry `koanf:"entries"`
IgnoreUnprefixed bool `koanf:"ignore_unprefixed"`
Label string `koanf:"label"`
Prefix string `koanf:"prefix"`
}
type Bookmarks ¶ added in v0.10.0
type Bookmarks struct {
GeneralModule `koanf:",squash"`
Entries []BookmarkEntry `koanf:"entries"`
Groups []BookmarkGroup `koanf:"groups"`
}
type Box ¶
type Box struct {
BoxWidget `koanf:",squash"`
Scroll Scroll `koanf:"scroll"`
AiScroll AiScroll `koanf:"ai_scroll"`
Revert bool `koanf:"revert"`
Search SearchWrapper `koanf:"search"`
Bar BarWrapper `koanf:"bar"`
}
type Builtins ¶
type Builtins struct {
AI AI `koanf:"ai"`
Applications Applications `koanf:"applications"`
Bookmarks Bookmarks `koanf:"bookmarks"`
Calc Calc `koanf:"calc"`
Clipboard Clipboard `koanf:"clipboard"`
Commands Commands `koanf:"commands"`
CustomCommands CustomCommands `koanf:"custom_commands"`
HyprlandKeybinds HyprlandKeybinds `koanf:"hyprland_keybinds"`
Emojis Emojis `koanf:"emojis"`
Finder Finder `koanf:"finder"`
Runner Runner `koanf:"runner"`
SSH SSH `koanf:"ssh"`
Switcher Switcher `koanf:"switcher"`
Symbols Symbols `koanf:"symbols"`
Translation Translation `koanf:"translation"`
Websearch Websearch `koanf:"websearch"`
Windows Windows `koanf:"windows"`
XdphPicker XdphPicker `koanf:"xdph_picker"`
}
type Calc ¶ added in v0.7.0
type Calc struct {
GeneralModule `koanf:",squash"`
RequireNumber bool `koanf:"require_number"`
}
type Commands ¶
type Commands struct {
GeneralModule `koanf:",squash"`
}
type Config ¶
type Config struct {
ActivationMode ActivationMode `koanf:"activation_mode"`
AsWindow bool `koanf:"as_window"`
Bar Bar `koanf:"bar"`
Builtins Builtins `koanf:"builtins"`
CloseWhenOpen bool `koanf:"close_when_open"`
DisableClickToClose bool `koanf:"disable_click_to_close"`
Disabled []string `koanf:"disabled"`
Events Events `koanf:"events"`
ForceKeyboardFocus bool `koanf:"force_keyboard_focus"`
HotreloadTheme bool `koanf:"hotreload_theme"`
IgnoreMouse bool `koanf:"ignore_mouse"`
Keys Keys `koanf:"keys"`
List List `koanf:"list"`
Locale string `koanf:"locale"`
Monitor string `koanf:"monitor"`
Plugins []Plugin `koanf:"plugins"`
Search Search `koanf:"search"`
Terminal string `koanf:"terminal"`
TerminalTitleFlag string `koanf:"terminal_title_flag"`
ThemeLocation []string `koanf:"theme_location"`
PluginLocation []string `koanf:"plugin_location"`
Theme string `koanf:"theme"`
ThemeBase []string `koanf:"theme_base"`
Timeout int `koanf:"timeout"`
JSRuntime string `koanf:"js_runtime"`
// internal
Available []SwitcherAvailable `koanf:"-"`
Hidden []string `koanf:"-"`
IsService bool `koanf:"-"`
}
var Cfg *Config
type CustomCommand ¶
type CustomCommands ¶
type CustomCommands struct {
GeneralModule `koanf:",squash"`
Commands []CustomCommand `koanf:"commands"`
}
type Emojis ¶
type Emojis struct {
GeneralModule `koanf:",squash"`
Exec string `koanf:"exec"`
ExecAlt string `koanf:"exec_alt"`
ShowUnqualified bool `koanf:"show_unqualified"`
}
type GeneralModule ¶
type GeneralModule struct {
Stream bool
LaunchPrefix string `koanf:"launch_prefix"`
AutoSelect bool `koanf:"auto_select"`
Blacklist BlacklistItems `koanf:"blacklist"`
Delay int `koanf:"delay"`
EagerLoading bool `koanf:"eager_loading"`
ExternalConfig bool `koanf:"external_config"`
Hidden bool `koanf:"hidden"`
History bool `koanf:"history"`
HistoryBlacklist []Blacklist `koanf:"history_blacklist"`
Icon string `koanf:"icon"`
KeepSelection bool `koanf:"keep_selection"`
KeepSort bool `koanf:"keep_sort"`
MinChars int `koanf:"min_chars"`
Name string `koanf:"name"`
OnSelect string `koanf:"on_select"`
OutputPlaceholder string `koanf:"output_placeholder"`
Placeholder string `koanf:"placeholder"`
Prefix string `koanf:"prefix"`
Refresh bool `koanf:"refresh"`
ShowIconWhenSingle bool `koanf:"show_icon_when_single"`
ShowSubWhenSingle bool `koanf:"show_sub_when_single"`
SwitcherOnly bool `koanf:"switcher_only"`
Theme string `koanf:"theme"`
ThemeBase []string `koanf:"theme_base"`
Typeahead bool `koanf:"typeahead"`
Weight int `koanf:"weight"`
// internal
HasInitialSetup bool `koanf:"-"`
IsSetup bool `koanf:"-"`
}
type HyprlandKeybinds ¶ added in v0.12.31
type HyprlandKeybinds struct {
GeneralModule `koanf:",squash"`
}
type ImageWidget ¶
type Keys ¶ added in v0.11.0
type Keys struct {
AcceptTypeahead []string `koanf:"accept_typeahead"`
ActivationModifiers ActivationModifiers `koanf:"activation_modifiers"`
Ai AiKeys `koanf:"ai"`
Close []string `koanf:"close"`
Next []string `koanf:"next"`
Prev []string `koanf:"prev"`
RemoveFromHistory []string `koanf:"remove_from_history"`
ResumeQuery []string `koanf:"resume_query"`
ToggleExactSearch []string `koanf:"toggle_exact_search"`
TriggerLabels string `koanf:"trigger_labels"`
}
type LabelWidget ¶
type List ¶
type List struct {
Cycle bool `koanf:"cycle"`
DynamicSub bool `koanf:"dynamic_sub"`
KeyboardScrollStyle string `koanf:"keyboard_scroll_style"`
MaxEntries int `koanf:"max_entries"`
Placeholder string `koanf:"placeholder"`
ShowInitialEntries bool `koanf:"show_initial_entries"`
SingleClick bool `koanf:"single_click"`
VisibilityThreshold int `koanf:"visibility_threshold"`
}
type ListItemWidget ¶
type ListItemWidget struct {
BoxWidget `koanf:",squash"`
Revert bool `koanf:"revert"`
ActivationLabel ActivationLabelWidget `koanf:"activation_label"`
Icon ImageWidget `koanf:"icon"`
Text TextWrapper `koanf:"text"`
}
type ListWrapper ¶
type ListWrapper struct {
AlwaysShow bool `koanf:"always_show"`
Grid bool `koanf:"grid"`
Item ListItemWidget `koanf:"item"`
MarkerColor string `koanf:"marker_color"`
MaxHeight int `koanf:"max_height"`
MaxWidth int `koanf:"max_width"`
MinHeight int `koanf:"min_height"`
MinWidth int `koanf:"min_width"`
Orientation string `koanf:"orientation"`
Placeholder LabelWidget `koanf:"placeholder"`
Widget `koanf:",squash"`
}
type Plugin ¶
type Plugin struct {
GeneralModule `koanf:",squash"`
Cmd string `koanf:"cmd"`
CmdAlt string `koanf:"cmd_alt"`
Entries []*util.Entry `koanf:"entries"`
Keywords []string `koanf:"keywords"`
KvSeparator string `koanf:"kv_separator"`
LabelColumn int `koanf:"label_column"`
Matching util.MatchingType `koanf:"matching"`
Output bool `koanf:"output"`
Parser string `koanf:"parser"`
RecalculateScore bool `koanf:"recalculate_score,omitempty"`
ResultColumn int `koanf:"result_column"`
Separator string `koanf:"separator"`
Src string `koanf:"src"`
SrcOnce string `koanf:"src_once"`
Terminal bool `koanf:"terminal"`
}
type PromptWidget ¶
type PromptWidget struct {
LabelWidget `koanf:",squash"`
ImageWidget `koanf:",squash"`
Text string `koanf:"text"`
Icon string `koanf:"icon"`
}
type SSH ¶
type SSH struct {
GeneralModule `koanf:",squash"`
ConfigFile string `koanf:"config_file"`
HostFile string `koanf:"host_file"`
}
type Scroll ¶
type Scroll struct {
Widget `koanf:",squash"`
List ListWrapper `koanf:"list"`
OverlayScrolling bool `koanf:"overlay_scrolling"`
HScrollbarPolicy string `koanf:"h_scrollbar_policy"`
VScrollbarPolicy string `koanf:"v_scrollbar_policy"`
}
type SearchWidget ¶
type SearchWidget struct {
Widget `koanf:",squash"`
}
type SearchWrapper ¶
type SearchWrapper struct {
BoxWidget `koanf:",squash"`
Revert bool `koanf:"revert"`
Input SearchWidget `koanf:"input"`
Prompt PromptWidget `koanf:"prompt"`
Clear ImageWidget `koanf:"clear"`
Spinner SpinnerWidget `koanf:"spinner"`
}
type SpinnerWidget ¶
type SpinnerWidget struct {
Widget `koanf:",squash"`
}
type Switcher ¶
type Switcher struct {
GeneralModule `koanf:",squash"`
}
type SwitcherAvailable ¶ added in v0.13.14
type Symbols ¶ added in v0.9.8
type Symbols struct {
GeneralModule `koanf:",squash"`
Exec string `koanf:"exec"`
ExecAlt string `koanf:"exec_alt"`
}
type TextWrapper ¶
type TextWrapper struct {
BoxWidget `koanf:",squash"`
Label LabelWidget `koanf:"label"`
Revert bool `koanf:"revert"`
Sub LabelWidget `koanf:"sub"`
}
type Translation ¶ added in v0.12.0
type Translation struct {
GeneralModule `koanf:",squash"`
Provider string `koanf:"provider"`
}
type UI ¶
type UI struct {
Anchors Anchors `koanf:"anchors"`
Fullscreen bool `koanf:"fullscreen"`
ExclusiveZone int `koanf:"exclusive_zone"`
Window Window `koanf:"window"`
// internal
AlignMap map[string]gtk.Align `koanf:"-"`
IconSizeMap map[string]gtk.IconSize `koanf:"-"`
IconSizeIntMap map[string]int `koanf:"-"`
JustifyMap map[string]gtk.Justification `koanf:"-"`
OrientationMap map[string]gtk.Orientation `koanf:"-"`
ScrollPolicyMap map[string]gtk.PolicyType `koanf:"-"`
}
func (*UI) InitUnitMaps ¶
func (u *UI) InitUnitMaps()
type Websearch ¶
type Websearch struct {
GeneralModule `koanf:",squash"`
Entries []WebsearchEntry `koanf:"entries"`
}
type WebsearchEntry ¶ added in v0.9.7
type Widget ¶
type Widget struct {
CssClasses []string `koanf:"css_classes"`
HAlign string `koanf:"h_align"`
HExpand bool `koanf:"h_expand"`
Height int `koanf:"height"`
Hide bool `koanf:"hide"`
Margins Margins `koanf:"margins"`
Name string `koanf:"name"`
Opacity float64 `koanf:"opacity"`
VAlign string `koanf:"v_align"`
VExpand bool `koanf:"h_expand"`
Width int `koanf:"width"`
}
type Windows ¶
type Windows struct {
GeneralModule `koanf:",squash"`
}
type XdphPicker ¶ added in v0.11.4
type XdphPicker struct {
GeneralModule `koanf:",squash"`
}
Click to show internal directories.
Click to hide internal directories.