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
Gap uint32 `koanf:"gaps"`
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 LayoutWindow ¶
type LayoutWindow struct {
WidthPercentage, HeightPercentage, XPercentage, YPercentage float64
}
where a window is on a layout (dynamic by using percentages)
type Window ¶
type Window struct {
X, Y int
Width, Height int
Fullscreen bool
// 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.