config

package
v0.0.70 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 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 `json:"use_alt,omitempty"`
	Disabled bool `json:"disabled,omitempty"`
	UseFKeys bool `json:"use_f_keys,omitempty"`
}

type Align

type Align struct {
	IgnoreExclusive bool    `json:"ignore_exclusive,omitempty"`
	Horizontal      string  `json:"horizontal,omitempty"`
	Vertical        string  `json:"vertical,omitempty"`
	Width           int     `json:"width,omitempty"`
	Height          int     `json:"height,omitempty"`
	Margins         Margins `json:"margins,omitempty"`
	Anchors         Anchors `json:"anchors,omitempty"`
}

type Anchors added in v0.0.53

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

type Clipboard added in v0.0.27

type Clipboard struct {
	ImageHeight int `json:"image_height,omitempty"`
	MaxEntries  int `json:"max_entries,omitempty"`
}

type Config

type Config struct {
	Placeholder        string            `json:"placeholder,omitempty"`
	EnableTypeahead    bool              `json:"enable_typeahead,omitempty"`
	ShowInitialEntries bool              `json:"show_initial_entries,omitempty"`
	ForceKeyboardFocus bool              `json:"force_keyboard_focus,omitempty"`
	SSHHostFile        string            `json:"ssh_host_file,omitempty"`
	ShellConfig        string            `json:"shell_config,omitempty"`
	Terminal           string            `json:"terminal,omitempty"`
	Orientation        string            `json:"orientation,omitempty"`
	Fullscreen         bool              `json:"fullscreen,omitempty"`
	Modules            []Module          `json:"modules,omitempty"`
	External           []Module          `json:"external,omitempty"`
	Icons              Icons             `json:"icons,omitempty"`
	Align              Align             `json:"align,omitempty"`
	List               List              `json:"list,omitempty"`
	Search             Search            `json:"search,omitempty"`
	Clipboard          Clipboard         `json:"clipboard,omitempty"`
	Runner             Runner            `json:"runner,omitempty"`
	ActivationMode     ActivationMode    `json:"activation_mode,omitempty"`
	ScrollbarPolicy    string            `json:"scrollbar_policy,omitempty"`
	IgnoreMouse        bool              `json:"ignore_mouse,omitempty"`
	Hyprland           Hyprland          `json:"hyprland,omitempty"`
	SpecialLabels      map[string]string `json:"special_labels,omitempty"`
	IsService          bool              `json:"-"`
}

func Get

func Get() *Config

type Hyprland added in v0.0.65

type Hyprland struct {
	ContextAwareHistory bool `json:"context_aware_history,omitempty"`
}

type Icons

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

type List

type List struct {
	MarginTop   int  `json:"margin_top,omitempty"`
	Height      int  `json:"height,omitempty"`
	Width       int  `json:"width,omitempty"`
	AlwaysShow  bool `json:"always_show,omitempty"`
	FixedHeight bool `json:"fixed_height,omitempty"`
	HideSub     bool `json:"hide_sub,omitempty"`
}

type Margins

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

type Module

type Module struct {
	Prefix            string `json:"prefix,omitempty"`
	Name              string `json:"name,omitempty"`
	Src               string `json:"src,omitempty"`
	Cmd               string `json:"cmd,omitempty"`
	SpecialLabel      string `json:"special_label,omitempty"`
	Transform         bool   `json:"transform,omitempty"`
	History           bool   `json:"history,omitempty"`
	SwitcherExclusive bool   `json:"switcher_exclusive,omitempty"`
}

type Runner added in v0.0.34

type Runner struct {
	Excludes []string
	Includes []string
}
type Search struct {
	Delay         int  `json:"delay,omitempty"`
	HideIcons     bool `json:"hide_icons,omitempty"`
	MarginSpinner int  `json:"margin_spinner,omitempty"`
	HideSpinner   bool `json:"hide_spinner,omitempty"`
}

Jump to

Keyboard shortcuts

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