commands

package
v0.0.0-...-5f9e87e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: BSD-3-Clause Imports: 20 Imported by: 1

Documentation

Overview

package commands defines the Gribble command environment for Wingo.

For more about Gribble, see http://godoc.burntsushi.net/pkg/github.com/BurntSushi/gribble/

For about using Gribble with Wingo, see https://github.com/Anima-OS/Wonderland/blob/master/HOWTO-COMMANDS

Index

Constants

This section is empty.

Variables

View Source
var (
	// SafeExec is a channel through which a Gribble command execution is
	// sent and executed synchronously with respect to the X main event loop.
	// This is necessary to allow asynchronous prompts to run and return
	// values without locking up the rest of the window manager.
	SafeExec = make(chan func() gribble.Value, 1)

	// SafeReturn is the means through which a return value from a Gribble
	// command is synchronously returned with respext to the X main event loop.
	// See SafeExec.
	SafeReturn = make(chan gribble.Value, 0)
)
View Source
var Env = gribble.New([]gribble.Command{
	&AddWorkspace{},
	&Close{},
	&Dale{},
	&Float{},
	&Focus{},
	&FocusRaise{},
	&FrameBorders{},
	&FrameFull{},
	&FrameNada{},
	&FrameSlim{},
	&HeadCycle{},
	&HeadFocus{},
	&HeadFocusWithClient{},
	&ToggleFloating{},
	&ToggleIconify{},
	&Iconify{},
	&Deiconify{},
	&ToggleMaximize{},
	&ToggleStackAbove{},
	&ToggleStackBelow{},
	&ToggleSticky{},
	&Maximize{},
	&MouseMove{},
	&MouseResize{},
	&Move{},
	&MoveRelative{},
	&MovePointer{},
	&MovePointerRelative{},
	&Raise{},
	&RemoveWorkspace{},
	&RenameWorkspace{},
	&Resize{},
	&Restart{},
	&Quit{},
	&SetLayout{},
	&SetOpacity{},
	&Script{},
	&ScriptConfig{},
	&Shell{},
	&Unfloat{},
	&Unmaximize{},
	&WingoExec{},
	&WingoHelp{},
	&Workspace{},
	&WorkspaceGreedy{},
	&WorkspaceHead{},
	&WorkspaceSendClient{},
	&WorkspaceToHead{},
	&WorkspaceWithClient{},
	&WorkspaceGreedyWithClient{},

	&AutoTile{},
	&AutoUntile{},
	&AutoCycle{},
	&AutoResizeMaster{},
	&AutoResizeWindow{},
	&AutoNext{},
	&AutoPrev{},
	&AutoSwitchNext{},
	&AutoSwitchPrev{},
	&AutoMaster{},
	&AutoMakeMaster{},
	&AutoMastersMore{},
	&AutoMastersFewer{},

	&CycleClientChoose{},
	&CycleClientHide{},
	&CycleClientNext{},
	&CycleClientPrev{},
	&Input{},
	&Message{},
	&SelectClient{},
	&SelectWorkspace{},

	&GetActive{},
	&GetAllClients{},
	&GetClientX{},
	&GetClientY{},
	&GetClientHeight{},
	&GetClientWidth{},
	&GetClientList{},
	&GetClientName{},
	&GetClientType{},
	&GetClientWorkspace{},
	&GetHead{},
	&GetNumHeads{},
	&GetNumHeadsConnected{},
	&GetHeadHeight{},
	&GetHeadWidth{},
	&GetHeadWorkspace{},
	&GetLayout{},
	&GetWorkspace{},
	&GetWorkspaceId{},
	&GetWorkspaceList{},
	&GetWorkspaceNext{},
	&GetWorkspacePrefix{},
	&GetWorkspacePrev{},
	&GetClientStatesList{},
	&HideClientFromPanels{},
	&ShowClientInPanels{},

	&TagGet{},
	&TagSet{},

	&True{},
	&False{},
	&MatchClientMapped{},
	&MatchClientClass{},
	&MatchClientInstance{},
	&MatchClientIsTransient{},
	&MatchClientName{},
	&MatchClientType{},
	&Not{},
	&And{},
	&Or{},
})

Env declares all available commands. Any command not in this list cannot be executed.

Functions

This section is empty.

Types

type AddWorkspace

type AddWorkspace struct {
	Name string `param:"1"`
	Help string `` /* 210-byte string literal not displayed */

}

func (AddWorkspace) Run

func (cmd AddWorkspace) Run() gribble.Value

type And

type And struct {
	Op1  int    `param:"1"`
	Op2  int    `param:"2"`
	Help string `
Returns the logical AND of Op1 and Op2.

If Op1 or Op2 is not in {0, 1}, then a warning is logged and nil is returned.
`
}

func (And) Run

func (cmd And) Run() gribble.Value

type AutoCycle

type AutoCycle struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 238-byte string literal not displayed */

}

func (AutoCycle) Run

func (cmd AutoCycle) Run() gribble.Value

type AutoMakeMaster

type AutoMakeMaster struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 260-byte string literal not displayed */

}

func (AutoMakeMaster) Run

func (cmd AutoMakeMaster) Run() gribble.Value

type AutoMaster

type AutoMaster struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 244-byte string literal not displayed */

}

func (AutoMaster) Run

func (cmd AutoMaster) Run() gribble.Value

type AutoMastersFewer

type AutoMastersFewer struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 144-byte string literal not displayed */

}

func (AutoMastersFewer) Run

func (cmd AutoMastersFewer) Run() gribble.Value

type AutoMastersMore

type AutoMastersMore struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 143-byte string literal not displayed */

}

func (AutoMastersMore) Run

func (cmd AutoMastersMore) Run() gribble.Value

type AutoNext

type AutoNext struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 200-byte string literal not displayed */

}

func (AutoNext) Run

func (cmd AutoNext) Run() gribble.Value

type AutoPrev

type AutoPrev struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 200-byte string literal not displayed */

}

func (AutoPrev) Run

func (cmd AutoPrev) Run() gribble.Value

type AutoResizeMaster

type AutoResizeMaster struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Amount    float64     `param:"2"`
	Help      string      `` /* 247-byte string literal not displayed */

}

func (AutoResizeMaster) Run

func (cmd AutoResizeMaster) Run() gribble.Value

type AutoResizeWindow

type AutoResizeWindow struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Amount    float64     `param:"2"`
	Help      string      `` /* 249-byte string literal not displayed */

}

func (AutoResizeWindow) Run

func (cmd AutoResizeWindow) Run() gribble.Value

type AutoSwitchNext

type AutoSwitchNext struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 218-byte string literal not displayed */

}

func (AutoSwitchNext) Run

func (cmd AutoSwitchNext) Run() gribble.Value

type AutoSwitchPrev

type AutoSwitchPrev struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 222-byte string literal not displayed */

}

func (AutoSwitchPrev) Run

func (cmd AutoSwitchPrev) Run() gribble.Value

type AutoTile

type AutoTile struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 281-byte string literal not displayed */

}

func (AutoTile) Run

func (cmd AutoTile) Run() gribble.Value

type AutoUntile

type AutoUntile struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 370-byte string literal not displayed */

}

func (AutoUntile) Run

func (cmd AutoUntile) Run() gribble.Value

type Close

type Close struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `
Closes the window specified by Client.

Client may be the window id or a substring that matches a window name.
`
}

func (Close) Run

func (cmd Close) Run() gribble.Value

type CycleClientChoose

type CycleClientChoose struct {
	Help string `
Activates the current choice in a cycle prompt.
`
}

func (CycleClientChoose) Run

func (cmd CycleClientChoose) Run() gribble.Value

type CycleClientHide

type CycleClientHide struct {
	Help string `
Hides (i.e., cancels) the current cycle prompt.
`
}

func (CycleClientHide) Run

func (cmd CycleClientHide) Run() gribble.Value

type CycleClientNext

type CycleClientNext struct {
	OnlyActiveWorkspace string `param:"1"`
	OnlyVisible         string `param:"2"`
	ShowIconified       string `param:"3"`
	Help                string `` /* 506-byte string literal not displayed */

}

func (CycleClientNext) Run

func (cmd CycleClientNext) Run() gribble.Value

func (CycleClientNext) RunWithKeyStr

func (cmd CycleClientNext) RunWithKeyStr(keyStr string)

type CycleClientPrev

type CycleClientPrev struct {
	OnlyActiveWorkspace string `param:"1"`
	OnlyVisible         string `param:"2"`
	ShowIconified       string `param:"3"`
	Help                string `` /* 514-byte string literal not displayed */

}

func (CycleClientPrev) Run

func (cmd CycleClientPrev) Run() gribble.Value

func (CycleClientPrev) RunWithKeyStr

func (cmd CycleClientPrev) RunWithKeyStr(keyStr string)

type Dale

type Dale struct {
	Help string `
Make sure "audio_play_cmd" is set to a program that can play wav files.
`
}

func (Dale) Run

func (cmd Dale) Run() gribble.Value

type Deiconify

type Deiconify struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 197-byte string literal not displayed */

}

func (Deiconify) Run

func (cmd Deiconify) Run() gribble.Value

type False

type False struct {
	Help string `
Always returns 0.
`
}

func (False) Run

func (cmd False) Run() gribble.Value

type Float

type Float struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 175-byte string literal not displayed */

}

func (Float) Run

func (cmd Float) Run() gribble.Value

type Focus

type Focus struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `
Focuses the window specified by Client.

Client may be the window id or a substring that matches a window name.
`
}

func (Focus) Run

func (cmd Focus) Run() gribble.Value

type FocusRaise

type FocusRaise struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `
Focuses and raises the window specified by Client.

Client may be the window id or a substring that matches a window name.
`
}

func (FocusRaise) Run

func (cmd FocusRaise) Run() gribble.Value

type FrameBorders

type FrameBorders struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 151-byte string literal not displayed */

}

func (FrameBorders) Run

func (cmd FrameBorders) Run() gribble.Value

type FrameFull

type FrameFull struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 148-byte string literal not displayed */

}

func (FrameFull) Run

func (cmd FrameFull) Run() gribble.Value

type FrameNada

type FrameNada struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 148-byte string literal not displayed */

}

func (FrameNada) Run

func (cmd FrameNada) Run() gribble.Value

type FrameSlim

type FrameSlim struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 148-byte string literal not displayed */

}

func (FrameSlim) Run

func (cmd FrameSlim) Run() gribble.Value

type GetActive

type GetActive struct {
	Help string `
Returns the id of the currently active window. If there is no active window,
0 is returned.
`
}

func (GetActive) Run

func (cmd GetActive) Run() gribble.Value

type GetAllClients

type GetAllClients struct {
	Help string `` /* 151-byte string literal not displayed */

}

func (GetAllClients) Run

func (cmd GetAllClients) Run() gribble.Value

type GetClientHeight

type GetClientHeight struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 194-byte string literal not displayed */

}

func (GetClientHeight) Run

func (cmd GetClientHeight) Run() gribble.Value

type GetClientList

type GetClientList struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 276-byte string literal not displayed */

}

func (GetClientList) Run

func (cmd GetClientList) Run() gribble.Value

type GetClientName

type GetClientName struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 139-byte string literal not displayed */

}

func (GetClientName) Run

func (cmd GetClientName) Run() gribble.Value

type GetClientStatesList

type GetClientStatesList struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 441-byte string literal not displayed */

}

func (GetClientStatesList) Run

func (cmd GetClientStatesList) Run() gribble.Value

type GetClientType

type GetClientType struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 199-byte string literal not displayed */

}

func (GetClientType) Run

func (cmd GetClientType) Run() gribble.Value

type GetClientWidth

type GetClientWidth struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 193-byte string literal not displayed */

}

func (GetClientWidth) Run

func (cmd GetClientWidth) Run() gribble.Value

type GetClientWorkspace

type GetClientWorkspace struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 144-byte string literal not displayed */

}

func (GetClientWorkspace) Run

func (cmd GetClientWorkspace) Run() gribble.Value

type GetClientX

type GetClientX struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 452-byte string literal not displayed */

}

func (GetClientX) Run

func (cmd GetClientX) Run() gribble.Value

type GetClientY

type GetClientY struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 452-byte string literal not displayed */

}

func (GetClientY) Run

func (cmd GetClientY) Run() gribble.Value

type GetHead

type GetHead struct {
	Help string `` /* 146-byte string literal not displayed */

}

func (GetHead) Run

func (cmd GetHead) Run() gribble.Value

type GetHeadHeight

type GetHeadHeight struct {
	Head int    `param:"1"`
	Help string `` /* 220-byte string literal not displayed */

}

func (GetHeadHeight) Run

func (cmd GetHeadHeight) Run() gribble.Value

type GetHeadWidth

type GetHeadWidth struct {
	Head int    `param:"1"`
	Help string `` /* 219-byte string literal not displayed */

}

func (GetHeadWidth) Run

func (cmd GetHeadWidth) Run() gribble.Value

type GetHeadWorkspace

type GetHeadWorkspace struct {
	Head int    `param:"1"`
	Help string `` /* 191-byte string literal not displayed */

}

func (GetHeadWorkspace) Run

func (cmd GetHeadWorkspace) Run() gribble.Value

type GetLayout

type GetLayout struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 290-byte string literal not displayed */

}

func (GetLayout) Run

func (cmd GetLayout) Run() gribble.Value

type GetNumHeads

type GetNumHeads struct {
	Help string `
Returns the number of active Heads.
`
}

func (GetNumHeads) Run

func (cmd GetNumHeads) Run() gribble.Value

type GetNumHeadsConnected

type GetNumHeadsConnected struct {
	Help string `
Returns the number of Heads connected. This number may be greater
than the number returned by GetNumHeads.
`
}

func (GetNumHeadsConnected) Run

type GetWorkspace

type GetWorkspace struct {
	Help string `
Returns the name of the current workspace.
`
}

func (GetWorkspace) Run

func (cmd GetWorkspace) Run() gribble.Value

type GetWorkspaceId

type GetWorkspaceId struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 151-byte string literal not displayed */

}

func (GetWorkspaceId) Run

func (cmd GetWorkspaceId) Run() gribble.Value

type GetWorkspaceList

type GetWorkspaceList struct {
	Help string `
Returns a list of all workspaces, in the order that they were added.

The special "Sticky" workspace is not included.
`
}

func (GetWorkspaceList) Run

func (cmd GetWorkspaceList) Run() gribble.Value

type GetWorkspaceNext

type GetWorkspaceNext struct {
	Help string `` /* 222-byte string literal not displayed */

}

func (GetWorkspaceNext) Run

func (cmd GetWorkspaceNext) Run() gribble.Value

type GetWorkspacePrefix

type GetWorkspacePrefix struct {
	Prefix string `param:"1"`
	Help   string `` /* 202-byte string literal not displayed */

}

func (GetWorkspacePrefix) Run

func (cmd GetWorkspacePrefix) Run() gribble.Value

type GetWorkspacePrev

type GetWorkspacePrev struct {
	Help string `` /* 226-byte string literal not displayed */

}

func (GetWorkspacePrev) Run

func (cmd GetWorkspacePrev) Run() gribble.Value

type HeadCycle

type HeadCycle struct {
	Help string `` /* 134-byte string literal not displayed */

}

func (HeadCycle) Run

func (cmd HeadCycle) Run() gribble.Value

type HeadFocus

type HeadFocus struct {
	Head int    `param:"1"`
	Help string `` /* 141-byte string literal not displayed */

}

func (HeadFocus) Run

func (cmd HeadFocus) Run() gribble.Value

type HeadFocusWithClient

type HeadFocusWithClient struct {
	Head   int         `param:"1"`
	Client gribble.Any `param:"2" types:"int,string"`
	Help   string      `` /* 276-byte string literal not displayed */

}

func (HeadFocusWithClient) Run

func (cmd HeadFocusWithClient) Run() gribble.Value

type HideClientFromPanels

type HideClientFromPanels struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 173-byte string literal not displayed */

}

func (HideClientFromPanels) Run

type Iconify

type Iconify struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 191-byte string literal not displayed */

}

func (Iconify) Run

func (cmd Iconify) Run() gribble.Value

type Input

type Input struct {
	Label string `param:"1"`
	Help  string `` /* 317-byte string literal not displayed */

}

func (Input) Run

func (cmd Input) Run() gribble.Value

type MatchClientClass

type MatchClientClass struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Class  string      `param:"2"`
	Help   string      `` /* 269-byte string literal not displayed */

}

func (MatchClientClass) Run

func (cmd MatchClientClass) Run() gribble.Value

type MatchClientInstance

type MatchClientInstance struct {
	Client   gribble.Any `param:"1" types:"int,string"`
	Instance string      `param:"2"`
	Help     string      `` /* 275-byte string literal not displayed */

}

func (MatchClientInstance) Run

func (cmd MatchClientInstance) Run() gribble.Value

type MatchClientIsTransient

type MatchClientIsTransient struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 235-byte string literal not displayed */

}

func (MatchClientIsTransient) Run

type MatchClientMapped

type MatchClientMapped struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 135-byte string literal not displayed */

}

func (MatchClientMapped) Run

func (cmd MatchClientMapped) Run() gribble.Value

type MatchClientName

type MatchClientName struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Name   string      `param:"2"`
	Help   string      `` /* 235-byte string literal not displayed */

}

func (MatchClientName) Run

func (cmd MatchClientName) Run() gribble.Value

type MatchClientType

type MatchClientType struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Type   string      `param:"2"`
	Help   string      `` /* 241-byte string literal not displayed */

}

func (MatchClientType) Run

func (cmd MatchClientType) Run() gribble.Value

type Maximize

type Maximize struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 179-byte string literal not displayed */

}

func (Maximize) Run

func (cmd Maximize) Run() gribble.Value

type Message

type Message struct {
	Text string `param:"1"`
	Help string `` /* 163-byte string literal not displayed */

}

func (Message) Run

func (cmd Message) Run() gribble.Value

type MouseMove

type MouseMove struct {
	Help string `` /* 211-byte string literal not displayed */

}

func (MouseMove) Run

func (cmd MouseMove) Run() gribble.Value

type MouseResize

type MouseResize struct {
	Direction string `param:"1"`
	Help      string `` /* 680-byte string literal not displayed */

}

func (MouseResize) Run

func (cmd MouseResize) Run() gribble.Value

type Move

type Move struct {
	Client gribble.Any `param:"1" types:"int,string"`
	X      gribble.Any `param:"2" types:"int,float"`
	Y      gribble.Any `param:"3" types:"int,float"`
	Help   string      `` /* 386-byte string literal not displayed */

}

func (Move) Run

func (cmd Move) Run() gribble.Value

type MovePointer

type MovePointer struct {
	X    int    `param:"1"`
	Y    int    `param:"2"`
	Help string `
Moves the pointer to the x and y position specified by X and Y. Note the the
origin is located in the top left corner.
`
}

func (MovePointer) Run

func (cmd MovePointer) Run() gribble.Value

type MovePointerRelative

type MovePointerRelative struct {
	X    gribble.Any `param:"1" types:"int,float"`
	Y    gribble.Any `param:"2" types:"int,float"`
	Help string      `` /* 344-byte string literal not displayed */

}

func (MovePointerRelative) Run

func (cmd MovePointerRelative) Run() gribble.Value

type MoveRelative

type MoveRelative struct {
	Client gribble.Any `param:"1" types:"int,string"`
	X      gribble.Any `param:"2" types:"int,float"`
	Y      gribble.Any `param:"3" types:"int,float"`
	Help   string      `` /* 439-byte string literal not displayed */

}

func (MoveRelative) Run

func (cmd MoveRelative) Run() gribble.Value

type Not

type Not struct {
	Op   int    `param:"1"`
	Help string `` /* 158-byte string literal not displayed */

}

func (Not) Run

func (cmd Not) Run() gribble.Value

type Or

type Or struct {
	Op1  int    `param:"1"`
	Op2  int    `param:"2"`
	Help string `
Returns the logical OR of Op1 and Op2.

If Op1 or Op2 is not in {0, 1}, then a warning is logged and nil is returned.
`
}

func (Or) Run

func (cmd Or) Run() gribble.Value

type Quit

type Quit struct {
	Help string `
Stops Wingo.
`
}

func (Quit) Run

func (cmd Quit) Run() gribble.Value

type Raise

type Raise struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 136-byte string literal not displayed */

}

func (Raise) Run

func (cmd Raise) Run() gribble.Value

type RemoveWorkspace

type RemoveWorkspace struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 226-byte string literal not displayed */

}

func (RemoveWorkspace) Run

func (cmd RemoveWorkspace) Run() gribble.Value

type RenameWorkspace

type RenameWorkspace struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	NewName   string      `param:"2"`
	Help      string      `` /* 182-byte string literal not displayed */

}

func (RenameWorkspace) Run

func (cmd RenameWorkspace) Run() gribble.Value

type Resize

type Resize struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Width  gribble.Any `param:"2" types:"int,float"`
	Height gribble.Any `param:"3" types:"int,float"`
	Help   string      `` /* 351-byte string literal not displayed */

}

func (Resize) Run

func (cmd Resize) Run() gribble.Value

type Restart

type Restart struct {
	Help string `
Restarts Wingo in place using exec. This should be used to reload Wingo
after you've made changes to its configuration.
`
}

func (Restart) Run

func (cmd Restart) Run() gribble.Value

type Script

type Script struct {
	Command string `param:"1"`
	Help    string `
Executes a script in $XDG_CONFIG_HOME/wingo/scripts. The command
may include arguments.
`
}

func (Script) Run

func (cmd Script) Run() gribble.Value

type ScriptConfig

type ScriptConfig struct {
	ScriptName string `param:"1"`
	Help       string `
Returns the path to a script's configuration file.
`
}

func (ScriptConfig) Run

func (cmd ScriptConfig) Run() gribble.Value

type SelectClient

type SelectClient struct {
	TabCompletion       string `param:"1"`
	OnlyActiveWorkspace string `param:"2"`
	OnlyVisible         string `param:"3"`
	ShowIconified       string `param:"4"`
	Help                string `` /* 864-byte string literal not displayed */

}

func (SelectClient) Run

func (cmd SelectClient) Run() gribble.Value

type SelectWorkspace

type SelectWorkspace struct {
	TabCompletion string `param:"1"`
	Help          string `` /* 508-byte string literal not displayed */

}

func (SelectWorkspace) Run

func (cmd SelectWorkspace) Run() gribble.Value

type SetLayout

type SetLayout struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Name      string      `param:"2"`
	Help      string      `` /* 318-byte string literal not displayed */

}

func (SetLayout) Run

func (cmd SetLayout) Run() gribble.Value

type SetOpacity

type SetOpacity struct {
	Client  gribble.Any `param:"1" types:"int,string"`
	Opacity float64     `param:"2"`
	Help    string      `` /* 407-byte string literal not displayed */

}

func (SetOpacity) Run

func (cmd SetOpacity) Run() gribble.Value

type Shell

type Shell struct {
	Command string `param:"1"`
	Help    string `
Attempts to execute the shell command specified by Command. If an error occurs,
it will be logged to Wingo's stderr.
`
}

func (Shell) Run

func (cmd Shell) Run() gribble.Value

type ShowClientInPanels

type ShowClientInPanels struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 170-byte string literal not displayed */

}

func (ShowClientInPanels) Run

func (cmd ShowClientInPanels) Run() gribble.Value

type TagGet

type TagGet struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Name   string      `param:"2"`
	Help   string      `` /* 287-byte string literal not displayed */

}

func (TagGet) Run

func (cmd TagGet) Run() gribble.Value

type TagSet

type TagSet struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Name   string      `param:"2"`
	Value  string      `param:"3"`
	Help   string      `` /* 289-byte string literal not displayed */

}

func (TagSet) Run

func (cmd TagSet) Run() gribble.Value

type ToggleFloating

type ToggleFloating struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 221-byte string literal not displayed */

}

func (ToggleFloating) Run

func (cmd ToggleFloating) Run() gribble.Value

type ToggleIconify

type ToggleIconify struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 156-byte string literal not displayed */

}

func (ToggleIconify) Run

func (cmd ToggleIconify) Run() gribble.Value

type ToggleMaximize

type ToggleMaximize struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 127-byte string literal not displayed */

}

func (ToggleMaximize) Run

func (cmd ToggleMaximize) Run() gribble.Value

type ToggleStackAbove

type ToggleStackAbove struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 234-byte string literal not displayed */

}

func (ToggleStackAbove) Run

func (cmd ToggleStackAbove) Run() gribble.Value

type ToggleStackBelow

type ToggleStackBelow struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 234-byte string literal not displayed */

}

func (ToggleStackBelow) Run

func (cmd ToggleStackBelow) Run() gribble.Value

type ToggleSticky

type ToggleSticky struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 259-byte string literal not displayed */

}

func (ToggleSticky) Run

func (cmd ToggleSticky) Run() gribble.Value

type True

type True struct {
	Help string `
Always returns 1.
`
}

func (True) Run

func (cmd True) Run() gribble.Value

type Unfloat

type Unfloat struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 173-byte string literal not displayed */

}

func (Unfloat) Run

func (cmd Unfloat) Run() gribble.Value

type Unmaximize

type Unmaximize struct {
	Client gribble.Any `param:"1" types:"int,string"`
	Help   string      `` /* 177-byte string literal not displayed */

}

func (Unmaximize) Run

func (cmd Unmaximize) Run() gribble.Value

type WingoExec

type WingoExec struct {
	Commands string `param:"1"`
	Help     string `` /* 145-byte string literal not displayed */

}

func (WingoExec) Run

func (cmd WingoExec) Run() gribble.Value

type WingoHelp

type WingoHelp struct {
	CommandName string `param:"1"`
	Help        string `
Shows the usage information for a particular command specified by CommandName.
`
}

func (WingoHelp) Run

func (cmd WingoHelp) Run() gribble.Value

type Workspace

type Workspace struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 145-byte string literal not displayed */

}

func (Workspace) Run

func (cmd Workspace) Run() gribble.Value

type WorkspaceGreedy

type WorkspaceGreedy struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 332-byte string literal not displayed */

}

func (WorkspaceGreedy) Run

func (cmd WorkspaceGreedy) Run() gribble.Value

type WorkspaceGreedyWithClient

type WorkspaceGreedyWithClient struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Client    gribble.Any `param:"2" types:"int,string"`
	Help      string      `` /* 470-byte string literal not displayed */

}

func (WorkspaceGreedyWithClient) Run

type WorkspaceHead

type WorkspaceHead struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Help      string      `` /* 315-byte string literal not displayed */

}

func (WorkspaceHead) Run

func (cmd WorkspaceHead) Run() gribble.Value

type WorkspaceSendClient

type WorkspaceSendClient struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Client    gribble.Any `param:"2" types:"int,string"`
	Help      string      `` /* 233-byte string literal not displayed */

}

func (WorkspaceSendClient) Run

func (cmd WorkspaceSendClient) Run() gribble.Value

type WorkspaceToHead

type WorkspaceToHead struct {
	Head      int         `param:"1"`
	Workspace gribble.Any `param:"2" types:"int,string"`
	Help      string      `` /* 288-byte string literal not displayed */

}

func (WorkspaceToHead) Run

func (cmd WorkspaceToHead) Run() gribble.Value

type WorkspaceWithClient

type WorkspaceWithClient struct {
	Workspace gribble.Any `param:"1" types:"int,string"`
	Client    gribble.Any `param:"2" types:"int,string"`
	Help      string      `` /* 283-byte string literal not displayed */

}

func (WorkspaceWithClient) Run

func (cmd WorkspaceWithClient) Run() gribble.Value

Notes

Bugs

  • I think there is a bug in text/scanner where if a string ends with an escaped quote, the quote is cutoff and the backslash is left intact.

Jump to

Keyboard shortcuts

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