Documentation
¶
Index ¶
- Variables
- type Config
- type Keybind
- type Layout
- type LayoutWindow
- type Space
- type Window
- type WindowManager
- func (wm *WindowManager) Close()
- func (wm *WindowManager) Frame(w xproto.Window, createdBeforeWM bool)
- func (wm *WindowManager) OnConfigureRequest(event xproto.ConfigureRequestEvent)
- func (wm *WindowManager) OnEnterNotify(event xproto.EnterNotifyEvent)
- func (wm *WindowManager) OnLeaveNotify(event xproto.LeaveNotifyEvent)
- func (wm *WindowManager) OnMapRequest(event xproto.MapRequestEvent)
- func (wm *WindowManager) OnUnmapNotify(event xproto.UnmapNotifyEvent)
- func (wm *WindowManager) Run()
- func (wm *WindowManager) SendWmDelete(conn *xgb.Conn, window xproto.Window) error
- func (wm *WindowManager) UnFrame(w xproto.Window, unmapped bool)
- type Workspace
Constants ¶
This section is empty.
Variables ¶
View Source
var (
XUtil *xgbutil.XUtil
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// tiling window gaps, unfocused/focused window border colors, mod key for all wm actions, window border width, keybinds
Layouts map[int][]Layout `koanf:"layouts"`
Gap uint32 `koanf:"gaps"`
OuterGap uint32 `koanf:"outer-gap"`
StartTiling bool `koanf:"default-tiling"`
BorderUnactive uint32 `koanf:"unactive-border-color"`
BorderActive uint32 `koanf:"active-border-color"`
ModKey string `koanf:"mod-key"`
BorderWidth uint32 `koanf:"border-width"`
Keybinds []Keybind `koanf:"keybinds"`
}
type Layout ¶
type Layout struct {
Windows []LayoutWindow `koanf:"windows"`
}
a tiling layout of windows
type LayoutWindow ¶
type LayoutWindow struct {
WidthPercentage float64 `koanf:"width"`
HeightPercentage float64 `koanf:"height"`
XPercentage float64 `koanf:"x"`
YPercentage float64 `koanf:"y"`
}
where a window is on a layout (dynamic by using percentages)
type Window ¶
type Window struct {
X, Y int
Width, Height int
Fullscreen bool
Client xproto.Window
// contains filtered or unexported fields
}
basic window struct
type WindowManager ¶
type WindowManager struct {
// contains filtered or unexported fields
}
the connection, root window, width and height of screen, workspaces, the current workspace index, the current workspace, atoms for EMWH, if the wm is tiling, the space for tiling windows to be, the different tiling layouts, the wm condig, the mod key
func Create ¶
func Create() (*WindowManager, error)
create the X connection and get the root window, create workspaces and create window manager struct
func (*WindowManager) Close ¶
func (wm *WindowManager) Close()
func (*WindowManager) OnConfigureRequest ¶
func (wm *WindowManager) OnConfigureRequest(event xproto.ConfigureRequestEvent)
func (*WindowManager) OnEnterNotify ¶
func (wm *WindowManager) OnEnterNotify(event xproto.EnterNotifyEvent)
func (*WindowManager) OnLeaveNotify ¶
func (wm *WindowManager) OnLeaveNotify(event xproto.LeaveNotifyEvent)
func (*WindowManager) OnMapRequest ¶
func (wm *WindowManager) OnMapRequest(event xproto.MapRequestEvent)
func (*WindowManager) OnUnmapNotify ¶
func (wm *WindowManager) OnUnmapNotify(event xproto.UnmapNotifyEvent)
func (*WindowManager) Run ¶
func (wm *WindowManager) Run()
func (*WindowManager) SendWmDelete ¶
Click to show internal directories.
Click to hide internal directories.