Documentation
¶
Overview ¶
package wm is a Wingo specific package that maintains the global state of Wingo.
Index ¶
- Variables
- func AddClient(c Client)
- func AddWorkspace(name string) error
- func ClientMouseSetup(c Client)
- func FYI(format string, vals ...interface{})
- func FocusFallback()
- func FrameMouseSetup(c Client, frameId xproto.Window)
- func FramePieceMouseSetup(c Client, piece string, pieceid xproto.Window)
- func Initialize(x *xgbutil.XUtil, cmdEnv *gribble.Environment, hacks CommandHacks)
- func PopupError(format string, vals ...interface{})
- func RemoveClient(c Client)
- func RemoveWorkspace(wrk *workspace.Workspace) error
- func RenameWorkspace(wrk *workspace.Workspace, newName string) error
- func RootGeomChangeFun() xevent.ConfigureNotifyFun
- func SetWorkspace(wrk *workspace.Workspace, greedy bool)
- func ShowCycleClient(keyStr string, activeWrk, visible, iconified bool)
- func ShowSelectClient(tabComp int, activeWrk, visible, iconified bool, data interface{})
- func ShowSelectWorkspace(tabComp int, data interface{})
- func Workspace() *workspace.Workspace
- func WorkspaceToHead(headIndex int, wrk *workspace.Workspace)
- type AllPrompts
- type Client
- type ClientList
- type CommandHacks
- type Configuration
- type ThemeBorders
- type ThemeConfig
- type ThemeFull
- type ThemePrompt
- type ThemeSlim
Constants ¶
This section is empty.
Variables ¶
View Source
var ( X *xgbutil.XUtil Root *xwindow.Window Startup bool Clients ClientList Heads *heads.Heads Prompts AllPrompts Config *Configuration Theme *ThemeConfig StickyWrk *workspace.Sticky ShapeExt bool Restart bool )
View Source
var (
MouseClientClicked xproto.Window
)
MouseClientClicked is a terrible hack to inject state into commands. Basically, if a command is given with "::mouse::" as the argument for a client parameter, this variable will be checked and its value will be used.
Functions ¶
func AddWorkspace ¶
func ClientMouseSetup ¶
func ClientMouseSetup(c Client)
func FocusFallback ¶
func FocusFallback()
func FrameMouseSetup ¶
func FramePieceMouseSetup ¶
func Initialize ¶
func Initialize(x *xgbutil.XUtil, cmdEnv *gribble.Environment, hacks CommandHacks)
func PopupError ¶
func PopupError(format string, vals ...interface{})
func RemoveClient ¶
func RemoveClient(c Client)
func RemoveWorkspace ¶
func RootGeomChangeFun ¶
func RootGeomChangeFun() xevent.ConfigureNotifyFun
func SetWorkspace ¶
func ShowCycleClient ¶
func ShowSelectClient ¶
func ShowSelectWorkspace ¶
func ShowSelectWorkspace(tabComp int, data interface{})
func WorkspaceToHead ¶
Types ¶
type AllPrompts ¶
type Client ¶
type Client interface { Id() xproto.Window Frame() frame.Frame IsMapped() bool Iconified() bool IsSkipPager() bool IsSkipTaskbar() bool Workspace() workspace.Workspacer ImminentDestruction() bool IsMaximized() bool Remaximize() CycleItem() *prompt.CycleItem SelectItem() *prompt.SelectItem DragMoveBegin(rx, ry, ex, ey int) bool DragMoveStep(rx, ry, ex, ey int) DragMoveEnd(rx, ry, ex, ey int) DragResizeBegin(direction uint32, rx, ry, ex, ey int) (bool, xproto.Cursor) DragResizeStep(rx, ry, ex, ey int) DragResizeEnd(rx, ry, ex, ey int) }
func FindManagedClient ¶
func LastFocused ¶
func LastFocused() Client
type CommandHacks ¶
type Configuration ¶
type Configuration struct {
ConfirmKey, CancelKey string
BackspaceKey string
TabKey, RevTabKey string
Ffm bool
FfmFocus bool
FfmRaise bool
FfmStartupFocus bool
FfmHead bool
Workspaces []string
DefaultLayout string
PopupTime int
ShowFyi, ShowErrors bool
Shell string
AudioProgram string
// contains filtered or unexported fields
}
type ThemeBorders ¶
type ThemeBorders struct {
// contains filtered or unexported fields
}
func (ThemeBorders) FrameTheme ¶
func (tb ThemeBorders) FrameTheme() *frame.BordersTheme
type ThemeConfig ¶
type ThemeConfig struct { DefaultIcon *xgraphics.Image Full ThemeFull Borders ThemeBorders Slim ThemeSlim Prompt ThemePrompt }
type ThemeFull ¶
type ThemeFull struct {
// contains filtered or unexported fields
}
func (ThemeFull) FrameTheme ¶
type ThemePrompt ¶
type ThemePrompt struct {
// contains filtered or unexported fields
}
func (ThemePrompt) CycleTheme ¶
func (tp ThemePrompt) CycleTheme() *prompt.CycleTheme
func (ThemePrompt) InputTheme ¶
func (tp ThemePrompt) InputTheme() *prompt.InputTheme
func (ThemePrompt) MessageTheme ¶
func (tp ThemePrompt) MessageTheme() *prompt.MessageTheme
func (ThemePrompt) SelectTheme ¶
func (tp ThemePrompt) SelectTheme() *prompt.SelectTheme
Click to show internal directories.
Click to hide internal directories.