config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 8 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 {
	Disabled bool `mapstructure:"disabled"`
	UseAlt   bool `mapstructure:"use_alt"`
	UseFKeys bool `mapstructure:"use_f_keys"`
}

type Anchors added in v0.0.53

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

type Applications added in v0.0.71

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

type Builtins added in v0.1.0

type Builtins struct {
	Applications   Applications   `mapstructure:"applications"`
	Clipboard      Clipboard      `mapstructure:"clipboard"`
	Commands       Commands       `mapstructure:"commands"`
	CustomCommands CustomCommands `mapstructure:"custom_commands"`
	Dmenu          Dmenu          `mapstructure:"dmenu"`
	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 {
	ActivationMode ActivationMode    `mapstructure:"activation_mode"`
	Builtins       Builtins          `mapstructure:"builtins"`
	Disabled       []string          `mapstructure:"disabled"`
	IgnoreMouse    bool              `mapstructure:"ignore_mouse"`
	List           List              `mapstructure:"list"`
	Plugins        []Plugin          `mapstructure:"plugins"`
	Search         Search            `mapstructure:"search"`
	SpecialLabels  map[string]string `mapstructure:"special_labels"`
	Terminal       string            `mapstructure:"terminal"`
	UI             UI                `mapstructure:"ui"`

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

func Get

func Get(config string) *Config

type CustomCommand added in v0.2.0

type CustomCommand struct {
	Cmd      string `mapstructure:"cmd"`
	CmdAlt   string `mapstructure:"cmd_alt"`
	Name     string `mapstructure:"name"`
	Terminal bool   `mapstructure:"terminal"`
}

type CustomCommands added in v0.2.0

type CustomCommands struct {
	GeneralModule `mapstructure:",squash"`
	Commands      []CustomCommand `mapstructure:"commands"`
}

type Dmenu added in v0.5.0

type Dmenu struct {
	GeneralModule `mapstructure:",squash"`
	Separator     string `mapstructure:"separator"`
	LabelColumn   int    `mapstructure:"label_column"`
}

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 {
	IsSetup      bool   `mapstructure:"-"`
	History      bool   `mapstructure:"history"`
	Placeholder  string `mapstructure:"placeholder"`
	Prefix       string `mapstructure:"prefix"`
	SpecialLabel string `mapstructure:"special_label"`
	SwitcherOnly bool   `mapstructure:"switcher_only"`
	Typeahead    bool   `mapstructure:"typeahead"`
}

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"`
	ImageSize int    `mapstructure:"image_size"`
	Size      int    `mapstructure:"size"`
	Theme     string `mapstructure:"theme"`
}

type List

type List struct {
	AlwaysShow         bool   `mapstructure:"always_show"`
	Cycle              bool   `mapstructure:"cycle"`
	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 {
	Bottom int `mapstructure:"bottom"`
	End    int `mapstructure:"end"`
	Start  int `mapstructure:"start"`
	Top    int `mapstructure:"top"`
}

type Plugin added in v0.1.0

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

type Runner added in v0.0.34

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

type SSH added in v0.1.0

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

type Switcher added in v0.1.0

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

type UI added in v0.1.0

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

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