modules

package
v0.11.8 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ANTHROPIC_VERSION_HEADER = "anthropic-version"
	ANTHROPIC_VERSION        = "2023-06-01"
	ANTHROPIC_API_URL        = "https://api.anthropic.com/v1/messages"
	ANTHROPIC_AUTH_HEADER    = "x-api-key"
	ANTHROPIC_API_KEY        = "ANTHROPIC_API_KEY"
)
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 AI added in v0.9.0

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

func (*AI) Cleanup added in v0.9.0

func (ai *AI) Cleanup()

func (*AI) ClearCurrent added in v0.9.7

func (ai *AI) ClearCurrent()

func (*AI) CopyLastResponse added in v0.9.3

func (ai *AI) CopyLastResponse()

func (*AI) Entries added in v0.9.0

func (ai *AI) Entries(term string) []util.Entry

func (*AI) General added in v0.9.0

func (ai *AI) General() *config.GeneralModule

func (*AI) Refresh added in v0.9.0

func (ai *AI) Refresh()

func (*AI) ResumeLastMessages added in v0.9.7

func (ai *AI) ResumeLastMessages()

func (*AI) RunLastMessageInTerminal added in v0.10.4

func (ai *AI) RunLastMessageInTerminal()

func (*AI) Setup added in v0.9.0

func (ai *AI) Setup(cfg *config.Config) bool

func (*AI) SetupData added in v0.9.0

func (ai *AI) SetupData(cfg *config.Config)

func (*AI) SpecialFunc added in v0.9.0

func (ai *AI) SpecialFunc(args ...interface{})

type AnthropicMessage added in v0.9.2

type AnthropicMessage struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

type AnthropicRequest added in v0.9.0

type AnthropicRequest struct {
	Model       string             `json:"model"`
	MaxTokens   int                `json:"max_tokens"`
	Temperature float64            `json:"temperature"`
	System      string             `json:"system"`
	Messages    []AnthropicMessage `json:"messages"`
}

type AnthropicResponse added in v0.9.0

type AnthropicResponse struct {
	Id      string `json:"id,omitempty"`
	Type    string `json:"type,omitempty"`
	Role    string `json:"role,omitempty"`
	Model   string `json:"model,omitempty"`
	Content []struct {
		Type         string `json:"type,omitempty"`
		Text         string `json:"text,omitempty"`
		StopReason   string `json:"stop_reason,omitempty"`
		StopSequence string `json:"stop_sequence,omitempty"`
	} `json:"content,omitempty"`
}

type Application

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

type Applications

type Applications struct {
	Hstry history.History
	// contains filtered or unexported fields
}

func (*Applications) Cleanup

func (a *Applications) Cleanup()

func (*Applications) Entries

func (a *Applications) Entries(term 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(cfg *config.Config)

func (*Applications) Watch added in v0.7.2

func (a *Applications) Watch()

type Bookmarks added in v0.10.0

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

func (*Bookmarks) Cleanup added in v0.10.0

func (bookmarks *Bookmarks) Cleanup()

func (*Bookmarks) Entries added in v0.10.0

func (bookmarks *Bookmarks) Entries(term string) []util.Entry

func (*Bookmarks) General added in v0.10.0

func (bookmarks *Bookmarks) General() *config.GeneralModule

func (*Bookmarks) Refresh added in v0.10.0

func (bookmarks *Bookmarks) Refresh()

func (*Bookmarks) Setup added in v0.10.0

func (bookmarks *Bookmarks) Setup(cfg *config.Config) bool

func (*Bookmarks) SetupData added in v0.10.0

func (bookmarks *Bookmarks) SetupData(cfg *config.Config)

type Calc added in v0.7.0

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

func (Calc) Cleanup added in v0.7.0

func (c Calc) Cleanup()

func (Calc) Entries added in v0.7.0

func (c Calc) Entries(term string) []util.Entry

func (*Calc) General added in v0.7.0

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

func (*Calc) Refresh added in v0.7.0

func (c *Calc) Refresh()

func (*Calc) Setup added in v0.7.0

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

func (*Calc) SetupData added in v0.7.0

func (c *Calc) SetupData(cfg *config.Config)

type Commands

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

func (Commands) Cleanup

func (c Commands) Cleanup()

func (Commands) Entries

func (c Commands) Entries(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)

type CustomCommands

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

func (CustomCommands) Cleanup

func (c CustomCommands) Cleanup()

func (CustomCommands) Entries

func (c CustomCommands) Entries(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)

type Dmenu

type Dmenu struct {
	Config  config.Dmenu
	Content []string

	IsService bool
	// contains filtered or unexported fields
}

func (*Dmenu) Cleanup

func (d *Dmenu) Cleanup()

func (Dmenu) Entries

func (d Dmenu) Entries(term string) []util.Entry

func (*Dmenu) General

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

func (Dmenu) ListenForReply

func (d Dmenu) ListenForReply() bool

func (*Dmenu) Refresh

func (d *Dmenu) Refresh()

func (Dmenu) Reply

func (Dmenu) Reply(res string)

func (Dmenu) Send

func (d Dmenu) Send()

func (*Dmenu) Setup

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

func (*Dmenu) SetupData

func (d *Dmenu) SetupData(cfg *config.Config)

func (*Dmenu) StartListening

func (d *Dmenu) StartListening()

type EngineInfo

type EngineInfo struct {
	Label string
	URL   string
}

type Finder

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

func (*Finder) Cleanup

func (f *Finder) Cleanup()

func (*Finder) Entries

func (f *Finder) Entries(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)

type Plugin

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

func (Plugin) Cleanup

func (e Plugin) Cleanup()

func (Plugin) Entries

func (e Plugin) Entries(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)

type Runner

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

func (Runner) Cleanup

func (r Runner) Cleanup()

func (Runner) Entries

func (r Runner) Entries(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)

type SSH

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

func (SSH) Cleanup

func (s SSH) Cleanup()

func (SSH) Entries

func (s SSH) Entries(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)

type Switcher

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

func (Switcher) Cleanup

func (s Switcher) Cleanup()

func (Switcher) Entries

func (s Switcher) Entries(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)

type Websearch

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

func (Websearch) Cleanup

func (w Websearch) Cleanup()

func (Websearch) Entries

func (w Websearch) Entries(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)

type Window added in v0.11.4

type Window struct {
	ID    string
	Class string
	Title string
}

type Workable

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

type XdphPicker added in v0.11.4

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

func (*XdphPicker) Cleanup added in v0.11.4

func (x *XdphPicker) Cleanup()

func (*XdphPicker) Entries added in v0.11.4

func (x *XdphPicker) Entries(term string) []util.Entry

func (*XdphPicker) General added in v0.11.4

func (x *XdphPicker) General() *config.GeneralModule

func (*XdphPicker) Refresh added in v0.11.4

func (x *XdphPicker) Refresh()

func (*XdphPicker) Setup added in v0.11.4

func (x *XdphPicker) Setup(cfg *config.Config) bool

func (*XdphPicker) SetupData added in v0.11.4

func (x *XdphPicker) SetupData(cfg *config.Config)

func (*XdphPicker) SpecialFunc added in v0.11.4

func (x *XdphPicker) SpecialFunc(args ...interface{})

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