modules

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoogleURL     = "https://www.google.com/search?q=%TERM%"
	DuckDuckGoURL = "https://duckduckgo.com/?q=%TERM%"
	EcosiaURL     = "https://www.ecosia.org/search?q=%TERM%"
	YandexURL     = "https://yandex.com/search/?text=%TERM%"
)
View Source
const ApplicationsName = "applications"

Variables

View Source
var (
	DmenuSocketAddrGet   = filepath.Join(util.TmpDir(), "walker-dmenu.sock")
	DmenuSocketAddrReply = filepath.Join(util.TmpDir(), "walker-dmenu-reply.sock")
)

Functions

func Find

func Find(plugins []config.Plugin, name string) (config.Plugin, error)

Types

type Application

type Application struct {
	Generic util.Entry   `json:"generic,omitempty"`
	Actions []util.Entry `json:"actions,omitempty"`
}

type Applications

type Applications struct {
	// contains filtered or unexported fields
}

func (*Applications) Cleanup

func (a *Applications) Cleanup()

func (*Applications) Entries

func (a *Applications) Entries(ctx context.Context, _ string) []util.Entry

func (*Applications) General

func (a *Applications) General() *config.GeneralModule

func (*Applications) Refresh

func (a *Applications) Refresh()

func (*Applications) RunWm

func (a *Applications) RunWm()

func (*Applications) Setup

func (a *Applications) Setup(cfg *config.Config) bool

func (*Applications) SetupData

func (a *Applications) SetupData(_ *config.Config, ctx context.Context)

type Commands

type Commands struct {
	// contains filtered or unexported fields
}

func (Commands) Cleanup

func (c Commands) Cleanup()

func (Commands) Entries

func (c Commands) Entries(ctx context.Context, term string) []util.Entry

func (*Commands) General

func (c *Commands) General() *config.GeneralModule

func (*Commands) Refresh

func (c *Commands) Refresh()

func (*Commands) Setup

func (c *Commands) Setup(cfg *config.Config) bool

func (*Commands) SetupData

func (c *Commands) SetupData(cfg *config.Config, ctx context.Context)

type CustomCommands

type CustomCommands struct {
	// contains filtered or unexported fields
}

func (CustomCommands) Cleanup

func (c CustomCommands) Cleanup()

func (CustomCommands) Entries

func (c CustomCommands) Entries(ctx context.Context, term string) (_ []util.Entry)

func (*CustomCommands) General

func (c *CustomCommands) General() *config.GeneralModule

func (*CustomCommands) Refresh

func (c *CustomCommands) Refresh()

func (*CustomCommands) Setup

func (c *CustomCommands) Setup(cfg *config.Config) bool

func (*CustomCommands) SetupData

func (c *CustomCommands) SetupData(cfg *config.Config, ctx context.Context)

type Dmenu

type Dmenu struct {
	Content     []string
	Separator   string
	LabelColumn int

	IsService bool
	// contains filtered or unexported fields
}

func (*Dmenu) Cleanup

func (d *Dmenu) Cleanup()

func (Dmenu) Entries

func (d Dmenu) Entries(ctx context.Context, term string) []util.Entry

func (*Dmenu) General

func (d *Dmenu) General() *config.GeneralModule

func (Dmenu) ListenForReply

func (d Dmenu) ListenForReply()

func (*Dmenu) Refresh

func (d *Dmenu) Refresh()

func (Dmenu) Reply

func (Dmenu) Reply(res string)

func (Dmenu) Send

func (d Dmenu) Send()

func (*Dmenu) SetSeparator

func (d *Dmenu) SetSeparator(sep string)

func (*Dmenu) Setup

func (d *Dmenu) Setup(cfg *config.Config) bool

func (*Dmenu) SetupData

func (d *Dmenu) SetupData(cfg *config.Config, ctx context.Context)

func (*Dmenu) StartListening

func (d *Dmenu) StartListening()

type EngineInfo

type EngineInfo struct {
	Label string
	URL   string
}

type Finder

type Finder struct {
	// contains filtered or unexported fields
}

func (*Finder) Cleanup

func (f *Finder) Cleanup()

func (*Finder) Entries

func (f *Finder) Entries(ctx context.Context, term string) []util.Entry

func (*Finder) General

func (f *Finder) General() *config.GeneralModule

func (*Finder) Refresh

func (f *Finder) Refresh()

func (*Finder) Setup

func (f *Finder) Setup(cfg *config.Config) bool

func (*Finder) SetupData

func (f *Finder) SetupData(cfg *config.Config, ctx context.Context)

type Plugin

type Plugin struct {
	PluginCfg config.Plugin
	// contains filtered or unexported fields
}

func (Plugin) Cleanup

func (e Plugin) Cleanup()

func (Plugin) Entries

func (e Plugin) Entries(ctx context.Context, term string) []util.Entry

func (*Plugin) General

func (e *Plugin) General() *config.GeneralModule

func (*Plugin) Refresh

func (e *Plugin) Refresh()

func (*Plugin) Setup

func (e *Plugin) Setup(cfg *config.Config) bool

func (*Plugin) SetupData

func (e *Plugin) SetupData(cfg *config.Config, ctx context.Context)

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func (Runner) Cleanup

func (r Runner) Cleanup()

func (Runner) Entries

func (r Runner) Entries(ctx context.Context, term string) []util.Entry

func (*Runner) General

func (r *Runner) General() *config.GeneralModule

func (*Runner) Refresh

func (r *Runner) Refresh()

func (*Runner) Setup

func (r *Runner) Setup(cfg *config.Config) bool

func (*Runner) SetupData

func (r *Runner) SetupData(cfg *config.Config, ctx context.Context)

type SSH

type SSH struct {
	// contains filtered or unexported fields
}

func (SSH) Cleanup

func (s SSH) Cleanup()

func (SSH) Entries

func (s SSH) Entries(ctx context.Context, term string) []util.Entry

func (*SSH) General

func (s *SSH) General() *config.GeneralModule

func (*SSH) Refresh

func (s *SSH) Refresh()

func (*SSH) Setup

func (s *SSH) Setup(cfg *config.Config) bool

func (*SSH) SetupData

func (s *SSH) SetupData(cfg *config.Config, ctx context.Context)

type Switcher

type Switcher struct {
	// contains filtered or unexported fields
}

func (Switcher) Cleanup

func (s Switcher) Cleanup()

func (Switcher) Entries

func (s Switcher) Entries(ctx context.Context, term string) []util.Entry

func (*Switcher) General

func (s *Switcher) General() *config.GeneralModule

func (*Switcher) Refresh

func (s *Switcher) Refresh()

func (*Switcher) Setup

func (s *Switcher) Setup(cfg *config.Config) bool

func (*Switcher) SetupData

func (s *Switcher) SetupData(cfg *config.Config, ctx context.Context)

type Websearch

type Websearch struct {
	// contains filtered or unexported fields
}

func (Websearch) Cleanup

func (w Websearch) Cleanup()

func (Websearch) Entries

func (w Websearch) Entries(ctx context.Context, term string) []util.Entry

func (*Websearch) General

func (w *Websearch) General() *config.GeneralModule

func (*Websearch) Refresh

func (w *Websearch) Refresh()

func (*Websearch) Setup

func (w *Websearch) Setup(cfg *config.Config) bool

func (*Websearch) SetupData

func (w *Websearch) SetupData(_ *config.Config, ctx context.Context)

type Workable

type Workable interface {
	Cleanup()
	Entries(ctx context.Context, term string) []util.Entry
	General() *config.GeneralModule
	Refresh()
	Setup(cfg *config.Config) bool
	SetupData(cfg *config.Config, ctx context.Context)
}

Directories

Path Synopsis
wlr
Package wlr implements the wlr_foreign_toplevel_management_unstable_v1 protocol
Package wlr implements the wlr_foreign_toplevel_management_unstable_v1 protocol

Jump to

Keyboard shortcuts

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