Documentation ¶
Index ¶
- Constants
- Variables
- func Main()
- func Max(a, b int) int
- func Min(a, b int) int
- func NavRangesOverlap(a1, a2, b1, b2 int) bool
- func Overlap(a0, a1, b0, b1 int) int
- type Direction
- type EWMHBackend
- func (e *EWMHBackend) Activate(wid WindowID) error
- func (e *EWMHBackend) AddScreenTag(sid ScreenID, tag Tag) error
- func (e *EWMHBackend) ArrangeWindows(stack []WindowID) error
- func (e *EWMHBackend) BeginChange() error
- func (e *EWMHBackend) Compatible() bool
- func (e *EWMHBackend) EndChange() error
- func (e *EWMHBackend) EvtChan() chan Evt
- func (e *EWMHBackend) Icon(wid WindowID) image.Image
- func (e *EWMHBackend) Init(inst *Inst) error
- func (e *EWMHBackend) Maximize(wid WindowID, dir int) error
- func (e *EWMHBackend) Move(wid WindowID, r Rct) error
- func (e *EWMHBackend) RegisterKeyBind(keys KeyBindDef, evtDataPress interface{}, evtDataRelease interface{}) error
- func (e *EWMHBackend) RemScreenTag(sid ScreenID, tag Tag) error
- func (e *EWMHBackend) SetScreenTag(sid ScreenID, tag Tag) error
- func (e *EWMHBackend) SetWindowTag(wid WindowID, tag Tag) error
- func (e *EWMHBackend) Show(wid WindowID, show bool) error
- func (e *EWMHBackend) Shut()
- func (e *EWMHBackend) State(refresh bool) WMState
- type Evt
- type Inst
- func (inst *Inst) ApplyTagVisiblity(refresh bool, screenID ScreenID)
- func (inst *Inst) CallTiler(scr *WMScreenState, wnd *WMWindowState, tilerfunc *lua.LFunction, ...) error
- func (inst *Inst) GetScreenParams(scrid string, isolate bool) *ScreenParams
- func (inst *Inst) GetTilerWindowIDList(scr *WMScreenState, wnd *WMWindowState) WMWindowIDList
- func (inst *Inst) LuaAddScreenTag(L *lua.LState) int
- func (inst *Inst) LuaApplyTags(L *lua.LState) int
- func (inst *Inst) LuaEnableTiler(L *lua.LState) int
- func (inst *Inst) LuaEnableUIXFCEGenMon(L *lua.LState) int
- func (inst *Inst) LuaEvtData(L *lua.LState) int
- func (inst *Inst) LuaEvtParam(L *lua.LState) int
- func (inst *Inst) LuaEvtType(L *lua.LState) int
- func (inst *Inst) LuaGetActiveScreenID(L *lua.LState) int
- func (inst *Inst) LuaGetActiveWindowID(L *lua.LState) int
- func (inst *Inst) LuaGetScreenLayout(L *lua.LState) int
- func (inst *Inst) LuaGetTiler(L *lua.LState) int
- func (inst *Inst) LuaGetWMState(L *lua.LState) int
- func (inst *Inst) LuaGetWindowScreenID(L *lua.LState) int
- func (inst *Inst) LuaHelperParseWindowIDList(L *lua.LState, paramIdx int) WMWindowIDList
- func (inst *Inst) LuaHelperTileResultList(L *lua.LState, trl []TileResult) *lua.LTable
- func (inst *Inst) LuaKeyBind(L *lua.LState) int
- func (inst *Inst) LuaMaximizeWindow(L *lua.LState) int
- func (inst *Inst) LuaMoveXFCEPanelToScreen(L *lua.LState) int
- func (inst *Inst) LuaNavigateDown(L *lua.LState) int
- func (inst *Inst) LuaNavigateLeft(L *lua.LState) int
- func (inst *Inst) LuaNavigateNext(L *lua.LState) int
- func (inst *Inst) LuaNavigateNextOnScreen(L *lua.LState) int
- func (inst *Inst) LuaNavigateNextOnTag(L *lua.LState) int
- func (inst *Inst) LuaNavigatePrev(L *lua.LState) int
- func (inst *Inst) LuaNavigatePrevOnScreen(L *lua.LState) int
- func (inst *Inst) LuaNavigatePrevOnTag(L *lua.LState) int
- func (inst *Inst) LuaNavigateRight(L *lua.LState) int
- func (inst *Inst) LuaNavigateUp(L *lua.LState) int
- func (inst *Inst) LuaRepositionWindow(L *lua.LState) int
- func (inst *Inst) LuaResizeTiler(L *lua.LState) int
- func (inst *Inst) LuaRunTiler(L *lua.LState) int
- func (inst *Inst) LuaSetActiveWindowTag(L *lua.LState) int
- func (inst *Inst) LuaSetGaps(L *lua.LState) int
- func (inst *Inst) LuaSetTiler(L *lua.LState) int
- func (inst *Inst) LuaSetWindowTag(L *lua.LState) int
- func (inst *Inst) LuaShowTag(L *lua.LState) int
- func (inst *Inst) LuaShowWindow(L *lua.LState) int
- func (inst *Inst) LuaTagVisible(L *lua.LState) int
- func (inst *Inst) LuaTilerGrid(L *lua.LState) int
- func (inst *Inst) LuaTilerHelperGetScreenLayoutParams(L *lua.LState) int
- func (inst *Inst) LuaTilerMasterStack(L *lua.LState) int
- func (inst *Inst) LuaTilerNone(L *lua.LState) int
- func (inst *Inst) LuaTilerVTabbed(L *lua.LState) int
- func (inst *Inst) LuaTilerVTabbedStagger(L *lua.LState) int
- func (inst *Inst) LuaWindowMoveDown(L *lua.LState) int
- func (inst *Inst) LuaWindowMoveLeft(L *lua.LState) int
- func (inst *Inst) LuaWindowMoveRight(L *lua.LState) int
- func (inst *Inst) LuaWindowMoveUp(L *lua.LState) int
- func (inst *Inst) MoveWindowToScreen(wndid WindowID, scrid ScreenID)
- func (inst *Inst) NavMoveWindow(wndid WindowID, dir Direction) bool
- func (inst *Inst) PostProc(wms *WMState)
- func (inst *Inst) PrintOutputInfo()
- func (inst *Inst) RegisterTilers()
- func (inst *Inst) SetWindowTag(wndid WindowID, tag string)
- func (inst *Inst) TilerHelperGetScreenLayoutParams(scrid ScreenID, single bool) (usable Rct, gap int, dx, dy int)
- func (inst *Inst) TilerHelperProximityAdjust(trl []TileResult)
- type KeyBindDef
- type Pnt
- type Rct
- func (r Rct) Area() int
- func (r Rct) B() int
- func (r Rct) BottomLeft() Pnt
- func (r Rct) BottomRight() Pnt
- func (r Rct) Hit(p Pnt) bool
- func (r Rct) Intersect(r2 Rct) bool
- func (r Rct) Intersection(r2 Rct) Rct
- func (r Rct) IsZero() bool
- func (r Rct) R() int
- func (r Rct) String() string
- func (r Rct) TopLeft() Pnt
- func (r Rct) TopRight() Pnt
- func (r Rct) Valid() bool
- type RctList
- type ScreenID
- type ScreenParams
- type Tag
- type TagList
- type TileResult
- type TilingMode
- type UIBackend
- type WMBackend
- type WMDesktopState
- type WMDesktopStateList
- type WMScreenIDList
- type WMScreenState
- type WMScreenStateList
- type WMState
- func (wsl *WMState) FindWindowIndex(wndid WindowID) int
- func (wsl *WMState) GetActiveWindowID() WindowID
- func (wsl *WMState) GetScreen(scrid ScreenID) *WMScreenState
- func (wsl *WMState) GetScreenForTag(tag Tag) ScreenID
- func (wsl *WMState) GetWindow(wndid WindowID) *WMWindowState
- func (wsl *WMState) WindowInfo(wndid WindowID) string
- type WMWindowIDList
- type WMWindowState
- type WMWindowStateList
- type WindowID
- type XFCEGenMonInstance
- type XFCEGenMonUI
Constants ¶
View Source
const EvtTypeError = "Error"
View Source
const EvtTypeInit = "Init"
View Source
const EvtTypeKeyPress = "KeyPress"
View Source
const EvtTypeKeyRelease = "KeyRelease"
View Source
const EvtTypeQuit = "Quit"
View Source
const EvtTypeRaw = "Raw"
View Source
const EvtTypeScreenChange = "ScreenChange"
View Source
const EvtTypeWindowActivate = "WindowActivate"
View Source
const EvtTypeWindowChange = "WindowChange"
View Source
const EvtTypeWindowClose = "WindowClose"
View Source
const EvtTypeWindowGeometry = "WindowGeometry"
View Source
const EvtTypeWindowOpen = "WindowOpen"
View Source
const EvtTypeWindowTitle = "WindowTitle"
Variables ¶
View Source
var BuildDate string
View Source
var DefaultConfig string
View Source
var VersionString string
Functions ¶
func NavRangesOverlap ¶
Types ¶
type EWMHBackend ¶
type EWMHBackend struct {
// contains filtered or unexported fields
}
func (*EWMHBackend) Activate ¶
func (e *EWMHBackend) Activate(wid WindowID) error
func (*EWMHBackend) AddScreenTag ¶
func (e *EWMHBackend) AddScreenTag(sid ScreenID, tag Tag) error
func (*EWMHBackend) ArrangeWindows ¶
func (e *EWMHBackend) ArrangeWindows(stack []WindowID) error
func (*EWMHBackend) BeginChange ¶
func (e *EWMHBackend) BeginChange() error
func (*EWMHBackend) Compatible ¶
func (e *EWMHBackend) Compatible() bool
func (*EWMHBackend) EndChange ¶
func (e *EWMHBackend) EndChange() error
func (*EWMHBackend) EvtChan ¶
func (e *EWMHBackend) EvtChan() chan Evt
func (*EWMHBackend) Init ¶
func (e *EWMHBackend) Init(inst *Inst) error
func (*EWMHBackend) RegisterKeyBind ¶
func (e *EWMHBackend) RegisterKeyBind(keys KeyBindDef, evtDataPress interface{}, evtDataRelease interface{}) error
func (*EWMHBackend) RemScreenTag ¶
func (e *EWMHBackend) RemScreenTag(sid ScreenID, tag Tag) error
func (*EWMHBackend) SetScreenTag ¶
func (e *EWMHBackend) SetScreenTag(sid ScreenID, tag Tag) error
func (*EWMHBackend) SetWindowTag ¶
func (e *EWMHBackend) SetWindowTag(wid WindowID, tag Tag) error
func (*EWMHBackend) Shut ¶
func (e *EWMHBackend) Shut()
func (*EWMHBackend) State ¶
func (e *EWMHBackend) State(refresh bool) WMState
type Inst ¶
type Inst struct { L *lua.LState Log logfunk.F WMBE WMBackend ScriptSource string Script *lua.LFunction EvtType string EvtData string EvtParam lua.LValue RetileLockout time.Time ScreenParamsMap map[ScreenID]*ScreenParams // keeps track of current tag assignments WinFloat map[WindowID]struct{} DefaultScreenParams *ScreenParams GnomeShellHack bool TilerNames map[*lua.LFunction]string UIBackends []UIBackend }
func (*Inst) ApplyTagVisiblity ¶
func (*Inst) CallTiler ¶
func (inst *Inst) CallTiler(scr *WMScreenState, wnd *WMWindowState, tilerfunc *lua.LFunction, resizeDir string) error
func (*Inst) GetScreenParams ¶ added in v0.4.7
func (inst *Inst) GetScreenParams(scrid string, isolate bool) *ScreenParams
func (*Inst) GetTilerWindowIDList ¶
func (inst *Inst) GetTilerWindowIDList(scr *WMScreenState, wnd *WMWindowState) WMWindowIDList
func (*Inst) LuaEnableUIXFCEGenMon ¶ added in v0.2.0
func (*Inst) LuaGetScreenLayout ¶ added in v0.4.3
func (*Inst) LuaHelperParseWindowIDList ¶
func (inst *Inst) LuaHelperParseWindowIDList(L *lua.LState, paramIdx int) WMWindowIDList
func (*Inst) LuaHelperTileResultList ¶
func (*Inst) LuaMoveXFCEPanelToScreen ¶ added in v0.4.3
func (*Inst) LuaRepositionWindow ¶ added in v0.2.0
func (*Inst) LuaRunTiler ¶
LuaRunTiler run_tiler(screenid,actwndid,tiler)
func (*Inst) LuaTilerHelperGetScreenLayoutParams ¶
func (*Inst) LuaWindowMoveDown ¶ added in v0.4.1
func (*Inst) LuaWindowMoveLeft ¶ added in v0.4.1
func (*Inst) LuaWindowMoveRight ¶ added in v0.4.1
func (*Inst) MoveWindowToScreen ¶ added in v0.4.1
func (*Inst) NavMoveWindow ¶ added in v0.4.1
func (*Inst) PrintOutputInfo ¶ added in v0.4.7
func (inst *Inst) PrintOutputInfo()
func (*Inst) RegisterTilers ¶
func (inst *Inst) RegisterTilers()
func (*Inst) SetWindowTag ¶ added in v0.4.7
func (*Inst) TilerHelperGetScreenLayoutParams ¶
func (*Inst) TilerHelperProximityAdjust ¶
func (inst *Inst) TilerHelperProximityAdjust(trl []TileResult)
TilerHelperProximityAdjust rearranges a tiling result so that windows stay closest to their original position, unless their size changed
type KeyBindDef ¶
type KeyBindDef = string
type Rct ¶
type Rct struct {
X, Y, W, H int
}
Rct encodes a 2D integer rectangle as top-left coordinates X/Y, width and height W/H. The right and bottom columns/rows (X+W, Y+H) are not considered part of the area.
func (Rct) BottomLeft ¶
func (Rct) BottomRight ¶
func (Rct) Intersection ¶
type RctList ¶
type RctList struct {
Rcts []Rct
}
RctList is a list of disjunct (i.e. non-overlapping) rectangles (Rct)
func (*RctList) Add ¶
Add r to the combined area of the list. This may change large parts of the list to ensure the non-overlapping property.
type ScreenParams ¶
type TileResult ¶
type TilingMode ¶
type TilingMode string
type WMBackend ¶
type WMBackend interface { Compatible() bool Init(inst *Inst) error Shut() RegisterKeyBind(keys KeyBindDef, evtDataPress interface{}, evtDataRelease interface{}) error EvtChan() chan Evt State(refresh bool) WMState Icon(wid WindowID) image.Image BeginChange() error ArrangeWindows([]WindowID) error Show(wid WindowID, show bool) error Move(wid WindowID, r Rct) error Maximize(wid WindowID, dir int) error // 0:unmaximize, 1=maximize, 2=toggle Activate(wid WindowID) error SetWindowTag(wid WindowID, tag Tag) error SetScreenTag(sid ScreenID, tag Tag) error AddScreenTag(sid ScreenID, tag Tag) error RemScreenTag(sid ScreenID, tag Tag) error EndChange() error }
type WMDesktopStateList ¶
type WMDesktopStateList []WMDesktopState
type WMScreenIDList ¶
type WMScreenIDList []ScreenID
type WMScreenState ¶
type WMScreenStateList ¶
type WMScreenStateList []WMScreenState
type WMState ¶
type WMState struct { WMName string Windows WMWindowStateList Screens WMScreenStateList // all outputs that are currently enabled and mapped Desktops WMDesktopStateList Outputs WMScreenStateList // all outputs, including disabled ones ScreensConnected string ScreenLayouts string ActiveWindowHistory []WindowID }
func (*WMState) FindWindowIndex ¶
func (*WMState) GetActiveWindowID ¶
func (*WMState) GetScreen ¶
func (wsl *WMState) GetScreen(scrid ScreenID) *WMScreenState
func (*WMState) GetScreenForTag ¶
func (*WMState) GetWindow ¶
func (wsl *WMState) GetWindow(wndid WindowID) *WMWindowState
func (*WMState) WindowInfo ¶
type WMWindowIDList ¶
type WMWindowIDList []WindowID
type WMWindowState ¶
type WMWindowState struct { ID WindowID Title string Types []string States []string Class string Instance string Desktop string Geometry Rct // InnerGeometry Rct PosOfs Pnt SizeOfs Pnt VisibleGeometry RctList Visible bool Active bool Maximized bool Special bool Panel bool IsDesktop bool IconID string PrimaryScreen string SingleScreen bool Tag Tag }
func (*WMWindowState) WindowInfo ¶
func (w *WMWindowState) WindowInfo() string
type WMWindowStateList ¶
type WMWindowStateList []WMWindowState
func FilterReachable ¶
func FilterReachable(wsl *WMState, from WindowID, includeOccluded bool) WMWindowStateList
type XFCEGenMonInstance ¶
type XFCEGenMonUI ¶
type XFCEGenMonUI struct { GenMons []*XFCEGenMonInstance GenmonConfigDone bool // contains filtered or unexported fields }
func (*XFCEGenMonUI) Compatible ¶
func (ui *XFCEGenMonUI) Compatible() bool
func (*XFCEGenMonUI) DetectGenmonConfig ¶
func (ui *XFCEGenMonUI) DetectGenmonConfig(wms WMState)
func (*XFCEGenMonUI) Init ¶
func (ui *XFCEGenMonUI) Init(inst *Inst) error
func (*XFCEGenMonUI) ScreenUpdate ¶
func (ui *XFCEGenMonUI) ScreenUpdate(wms WMState, events []Evt)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.