root

package
v0.0.0-...-9fd801a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

root contains the files that define the callbacks on the root window

base.go - minimal callbacks such as locking the screen, focusing, shutting down the window manager, and creating a window brightness.go - callbacks for raising/lowering the backlight choose.go - callbacks implementing an alt-tab like interface launchers.go - callbacks for prompts that launch new windows (including the paritioning launch) monitor.go - a side event loop that monitors for changes of the screen configuration volume.go - callbacks for raising/lowering/muting volume taskbar.go - callbacks for interacting with the taskbar

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHelp

func GenerateHelp(ctx *frame.Context) string

func GetBrightnessAndMaxBrightness

func GetBrightnessAndMaxBrightness(ctx *frame.Context) (int, int, error)

func GetCurrentAudio

func GetCurrentAudio() (int, error)

func MonitorScreens

func MonitorScreens(ctx *frame.Context, inj *sideloop.Injector)

MonitorScreens runs an X event loop on the side just listening to whether the root geometry has changed. Once we notice a change, we pause the main event loop to update the screens, and then start monitoring again.

func RegisterBaseHooks

func RegisterBaseHooks(ctx *frame.Context) error

func RegisterBrightnessHooks

func RegisterBrightnessHooks(ctx *frame.Context) error

func RegisterChooseHooks

func RegisterChooseHooks(ctx *frame.Context)

func RegisterSplitHooks

func RegisterSplitHooks(ctx *frame.Context) error

func RegisterTaskbarHooks

func RegisterTaskbarHooks(ctx *frame.Context) error

func RegisterVolumeHooks

func RegisterVolumeHooks(ctx *frame.Context) error

func Split

func Split(ctx *frame.Context) *frame.Frame

Types

type AnchorTo

type AnchorTo struct {
	Anchor frame.AnchorType
	Screen frame.Rect
}

type Choice

type Choice struct {
	Win     *xwindow.Window
	Context *frame.Context
	Wrapper *CycleWrap
}

func (*Choice) CycleHighlighted

func (c *Choice) CycleHighlighted()

func (*Choice) CycleImage

func (c *Choice) CycleImage() *xgraphics.Image

func (*Choice) CycleIsActive

func (c *Choice) CycleIsActive() bool

func (*Choice) CycleSelected

func (c *Choice) CycleSelected()

func (*Choice) CycleText

func (c *Choice) CycleText() string

type CycleWrap

type CycleWrap struct {
	Cycle   *prompt.Cycle
	Choices []*prompt.CycleItem
}

func (*CycleWrap) Destroy

func (c *CycleWrap) Destroy()

type VolumeContext

type VolumeContext struct {
	Volume int
}

Jump to

Keyboard shortcuts

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