config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivationMode added in v0.0.40

type ActivationMode struct {
	UseAlt   bool `mapstructure:"use_alt"`
	Disabled bool `mapstructure:"disabled"`
	UseFKeys bool `mapstructure:"use_f_keys"`
}

type Anchors added in v0.0.53

type Anchors struct {
	Top    bool `mapstructure:"top"`
	Left   bool `mapstructure:"left"`
	Right  bool `mapstructure:"right"`
	Bottom bool `mapstructure:"bottom"`
}

type Applications added in v0.0.71

type Applications struct {
	GeneralModule `mapstructure:",squash"`
	Cache         bool `mapstructure:"cache"`
	Actions       bool `mapstructure:"actions"`
}

type Builtins added in v0.1.0

type Builtins struct {
	Applications Applications `mapstructure:"applications"`
	Clipboard    Clipboard    `mapstructure:"clipboard"`
	Commands     Commands     `mapstructure:"commands"`
	Emojis       Emojis       `mapstructure:"emojis"`
	Finder       Finder       `mapstructure:"finder"`
	Hyprland     Hyprland     `mapstructure:"hyprland"`
	Runner       Runner       `mapstructure:"runner"`
	SSH          SSH          `mapstructure:"ssh"`
	Switcher     Switcher     `mapstructure:"switcher"`
	Websearch    Websearch    `mapstructure:"websearch"`
}

type Clipboard added in v0.0.27

type Clipboard struct {
	GeneralModule `mapstructure:",squash"`
	ImageHeight   int `mapstructure:"image_height"`
	MaxEntries    int `mapstructure:"max_entries"`
}

type Commands added in v0.1.0

type Commands struct {
	GeneralModule `mapstructure:",squash"`
}

type Config

type Config struct {
	Terminal       string            `mapstructure:"terminal"`
	IgnoreMouse    bool              `mapstructure:"ignore_mouse"`
	SpecialLabels  map[string]string `mapstructure:"special_labels"`
	UI             UI                `mapstructure:"ui"`
	List           List              `mapstructure:"list"`
	Search         Search            `mapstructure:"search"`
	ActivationMode ActivationMode    `mapstructure:"activation_mode"`
	Disabled       []string          `mapstructure:"disabled"`
	Plugins        []Plugin          `mapstructure:"plugins"`
	Builtins       Builtins          `mapstructure:"builtins"`

	// internal
	IsService bool     `mapstructure:"-"`
	Enabled   []string `mapstructure:"-"`
}

func Get

func Get(config string) *Config

type Emojis added in v0.1.0

type Emojis struct {
	GeneralModule `mapstructure:",squash"`
}

type Finder added in v0.1.0

type Finder struct {
	GeneralModule `mapstructure:",squash"`
}

type GeneralModule added in v0.1.0

type GeneralModule struct {
	Placeholder  string `mapstructure:"placeholder"`
	SpecialLabel string `mapstructure:"special_label"`
	Prefix       string `mapstructure:"prefix"`
	SwitcherOnly bool   `mapstructure:"switcher_only"`
	IsSetup      bool   `mapstructure:"-"`
}

type Hyprland added in v0.0.65

type Hyprland struct {
	GeneralModule       `mapstructure:",squash"`
	ContextAwareHistory bool `mapstructure:"context_aware_history"`
}

type Icons

type Icons struct {
	Hide      bool   `mapstructure:"hide"`
	Size      int    `mapstructure:"size"`
	ImageSize int    `mapstructure:"image_size"`
	Theme     string `mapstructure:"theme"`
}

type List

type List struct {
	AlwaysShow         bool   `mapstructure:"always_show"`
	FixedHeight        bool   `mapstructure:"fixed_height"`
	Height             int    `mapstructure:"height"`
	HideSub            bool   `mapstructure:"hide_sub"`
	MarginTop          int    `mapstructure:"margin_top"`
	MaxEntries         int    `mapstructure:"max_entries"`
	ScrollbarPolicy    string `mapstructure:"scrollbar_policy"`
	ShowInitialEntries bool   `mapstructure:"show_initial_entries"`
	Width              int    `mapstructure:"width"`
}

type Margins

type Margins struct {
	Top    int `mapstructure:"top"`
	Bottom int `mapstructure:"bottom"`
	End    int `mapstructure:"end"`
	Start  int `mapstructure:"start"`
}

type Plugin added in v0.1.0

type Plugin struct {
	GeneralModule  `mapstructure:",squash"`
	Name           string `mapstructure:"name"`
	SrcOnce        string `mapstructure:"src_once"`
	SrcOnceRefresh bool   `mapstructure:"src_once_refresh"`
	Src            string `mapstructure:"src"`
	Cmd            string `mapstructure:"cmd"`
	CmdAlt         string `mapstructure:"cmd_alt"`
	Terminal       bool   `mapstructure:"terminal"`
	KeepSort       bool   `mapstructure:"keep_sort"`
}

type Runner added in v0.0.34

type Runner struct {
	GeneralModule `mapstructure:",squash"`
	ShellConfig   string   `mapstructure:"shell_config"`
	Excludes      []string `mapstructure:"excludes"`
	Includes      []string `mapstructure:"includes"`
}

type SSH added in v0.1.0

type SSH struct {
	GeneralModule `mapstructure:",squash"`
	HostFile      string `mapstructure:"host_file"`
}
type Search struct {
	Delay              int    `mapstructure:"delay"`
	Typeahead          bool   `mapstructure:"typeahead"`
	ForceKeyboardFocus bool   `mapstructure:"force_keyboard_focus"`
	Icons              bool   `mapstructure:"icons"`
	Spinner            bool   `mapstructure:"spinner"`
	History            bool   `mapstructure:"history"`
	MarginSpinner      int    `mapstructure:"margin_spinner"`
	Placeholder        string `mapstructure:"placeholder"`
}

type Switcher added in v0.1.0

type Switcher struct {
	GeneralModule `mapstructure:",squash"`
}

type UI added in v0.1.0

type UI struct {
	Icons           Icons   `mapstructure:"icons"`
	Orientation     string  `mapstructure:"orientation"`
	Fullscreen      bool    `mapstructure:"fullscreen"`
	IgnoreExclusive bool    `mapstructure:"ignore_exclusive"`
	Horizontal      string  `mapstructure:"horizontal"`
	Vertical        string  `mapstructure:"vertical"`
	Width           int     `mapstructure:"width"`
	Height          int     `mapstructure:"height"`
	Margins         Margins `mapstructure:"margins"`
	Anchors         Anchors `mapstructure:"anchors"`
}

type Websearch added in v0.0.83

type Websearch struct {
	GeneralModule `mapstructure:",squash"`
	Engines       []string `mapstructure:"engines"`
}

Jump to

Keyboard shortcuts

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