compositor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT, MIT Imports: 118 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package compositor connects backend events to the server and draws each output's frames.

Index

Constants

View Source
const (
	DefaultGestureDistance = 400
	DefaultEdgeWidth       = 16
)
View Source
const DefaultCursorSize = 24
View Source
const DefaultHDRHold = time.Second
View Source
const DefaultHiddenFrame = time.Second / 15
View Source
const (
	DefaultHoldBound = 100 * time.Millisecond
)
View Source
const DefaultHotCornerPressure = 80
View Source
const DefaultInheritTimeout = 30 * time.Second
View Source
const DefaultPowerSaverRate = 60
View Source
const MaxGestureTouches = 10

Variables

View Source
var (
	LockedColour    = render.Color{A: 0xff}
	AbandonedColour = render.Color{R: 0x60, A: 0xff}
)
View Source
var (
	Background = render.Color{R: 0x1e, G: 0x1e, B: 0x2e, A: 0xff}
)
View Source
var (
	DefaultAccent = render.Color{R: 0xe0, G: 0x94, B: 0x7a, A: 0xff}
)
View Source
var ErrNotFromMouseBind = errors.New("only a mouse bind can start a drag")
View Source
var (
	ErrPickCancelled = errors.New("compositor: the window pick was cancelled")
)
View Source
var SlowerSpeeds = [...]render.Speed{render.CPUDriver, render.Software}

Functions

func DefaultGestureBinds

func DefaultGestureBinds(workspaces anim.Style) []binds.GestureBind

func DefaultSettings

func DefaultSettings() wm.Settings

func PlainSettings

func PlainSettings() wm.Settings

Types

type Blur

type Blur struct {
	Enabled   bool
	Withhold  bool
	Size      int
	Passes    int
	XRay      bool
	LiveTiled bool
	Look      wm.Look
	Mica      Mica
}

type Compositor

type Compositor struct {
	// contains filtered or unexported fields
}

func New

func New(l *loop.Loop, display *server.Display, b backend.Backend, cfg Config) (*Compositor, error)

func (*Compositor) ActivationTokens

func (c *Compositor) ActivationTokens() int

func (*Compositor) AdoptHandover

func (c *Compositor) AdoptHandover(st *HandoverState, t *handover.FDs) (func() error, error)

func (*Compositor) AdoptionShown

func (c *Compositor) AdoptionShown() bool

func (*Compositor) Animating

func (c *Compositor) Animating(o *output.Output) bool

func (*Compositor) ApplyColorMatrix

func (c *Compositor) ApplyColorMatrix(o *output.Output, m backend.Matrix) error

func (*Compositor) Awaiting

func (c *Compositor) Awaiting() error

func (*Compositor) BindLookups

func (c *Compositor) BindLookups() uint64

func (*Compositor) BlurRedraws

func (c *Compositor) BlurRedraws() uint64

func (*Compositor) BufferDestroyed

func (c *Compositor) BufferDestroyed(b *dmabuf.Buffer) error

func (*Compositor) BuildOffThread

func (c *Compositor) BuildOffThread() error

func (*Compositor) Busy

func (c *Compositor) Busy() string

func (*Compositor) CanDrag

func (c *Compositor) CanDrag(origin *surface.Surface, serial uint32) bool

func (*Compositor) Capture

func (c *Compositor) Capture(send func(ipc.Event)) (ipc.CaptureSession, error)

func (*Compositor) CapturedPixels

func (c *Compositor) CapturedPixels() uint64

func (*Compositor) ClientResponsive

func (c *Compositor) ClientResponsive(cl *server.Client, responsive bool) error

func (*Compositor) Close

func (c *Compositor) Close() error

func (*Compositor) ClosingAt

func (c *Compositor) ClosingAt(now time.Duration) image.Point

func (*Compositor) ClosingCount

func (c *Compositor) ClosingCount() int

func (*Compositor) CommitTimerArmed

func (c *Compositor) CommitTimerArmed() time.Duration

func (*Compositor) Committed

func (c *Compositor) Committed(s *surface.Surface) error

func (*Compositor) CompleteAdoption

func (c *Compositor) CompleteAdoption() error

func (*Compositor) Configure

func (c *Compositor) Configure(heads []outputmanagement.HeadConfig, apply bool) error

func (*Compositor) CopiedBytes

func (c *Compositor) CopiedBytes() uint64

func (*Compositor) CreateOutput

func (c *Compositor) CreateOutput(spec ipc.OutputSpec) (ipc.CreatedOutput, error)

func (*Compositor) CurrentSelection

func (c *Compositor) CurrentSelection(k data.Kind) data.Source

func (*Compositor) Cursor

func (c *Compositor) Cursor() (float64, float64)

func (*Compositor) CursorChanged

func (c *Compositor) CursorChanged() error

func (*Compositor) CursorGrowth

func (c *Compositor) CursorGrowth() float64

func (*Compositor) CursorHidden

func (c *Compositor) CursorHidden() bool

func (*Compositor) CursorIdleChecks

func (c *Compositor) CursorIdleChecks() uint64

func (*Compositor) CursorShape

func (c *Compositor) CursorShape() string

func (*Compositor) CursorsLoading

func (c *Compositor) CursorsLoading() bool

func (*Compositor) DataDragging

func (c *Compositor) DataDragging() bool

func (*Compositor) Destroyed

func (c *Compositor) Destroyed(s *surface.Surface) error

func (*Compositor) DeviceAdded

func (c *Compositor) DeviceAdded(d backend.Device) error

func (*Compositor) DeviceRemoved

func (c *Compositor) DeviceRemoved(d backend.Device) error

func (*Compositor) DirtyOverviewThumbs

func (c *Compositor) DirtyOverviewThumbs()

func (*Compositor) Dispatch

func (c *Compositor) Dispatch(a wm.Action) error

func (*Compositor) DispatchPrepared

func (c *Compositor) DispatchPrepared(a wm.Action, loaded func() error) error

func (*Compositor) Display

func (c *Compositor) Display() *server.Display

func (*Compositor) DragEnded

func (c *Compositor) DragEnded(d *data.Drag) error

func (*Compositor) DragHoldLooks

func (c *Compositor) DragHoldLooks() uint64

func (*Compositor) DragStarted

func (c *Compositor) DragStarted(d *data.Drag) error

func (*Compositor) Dragging

func (c *Compositor) Dragging() bool

func (*Compositor) FilteredPixels

func (c *Compositor) FilteredPixels() uint64

func (*Compositor) FinishAdoption

func (c *Compositor) FinishAdoption() error

func (*Compositor) FocusTimestamp

func (c *Compositor) FocusTimestamp(id wm.WindowID) uint64

func (*Compositor) ForeignDrag

func (c *Compositor) ForeignDrag(src data.DragSource) (*data.Drag, error)

func (*Compositor) Frame

func (c *Compositor) Frame(b backend.Output) error

func (*Compositor) FrameCost

func (c *Compositor) FrameCost(o *output.Output) (draws, pixels int)

func (*Compositor) GPUResets

func (c *Compositor) GPUResets() uint64

func (*Compositor) GammaBlocked

func (c *Compositor) GammaBlocked(o *output.Output) bool

func (*Compositor) GrabChanged

func (c *Compositor) GrabChanged() error

func (*Compositor) HandoverState

func (c *Compositor) HandoverState(t *handover.FDs, skip func(*server.Client) bool) (*HandoverState, error)

func (*Compositor) Heads

func (c *Compositor) Heads() []outputmanagement.Head

func (*Compositor) HiddenFrames

func (c *Compositor) HiddenFrames() uint64

func (*Compositor) Holding

func (c *Compositor) Holding() bool

func (*Compositor) Holds

func (c *Compositor) Holds() HoldStats

func (*Compositor) HotCornerScans

func (c *Compositor) HotCornerScans() uint64

func (*Compositor) Icon

func (c *Compositor) Icon(id wm.WindowID, size int) (*image.RGBA, int, error)

func (*Compositor) Input

func (c *Compositor) Input(d backend.Device, e backend.Event) error

func (*Compositor) JellyRedraws

func (c *Compositor) JellyRedraws() uint64

func (*Compositor) KeyboardFocusChanged

func (c *Compositor) KeyboardFocusChanged(s *surface.Surface) error

func (*Compositor) KeyboardStateChanged

func (c *Compositor) KeyboardStateChanged()

func (*Compositor) LabelsPending

func (c *Compositor) LabelsPending() bool

func (*Compositor) Landed

func (c *Compositor) Landed() uint64

func (*Compositor) LayerCommitted

func (c *Compositor) LayerCommitted(l *shell.LayerSurface) error

func (*Compositor) LayerDestroyed

func (c *Compositor) LayerDestroyed(l *shell.LayerSurface) error

func (*Compositor) LayerUnmapped

func (c *Compositor) LayerUnmapped(l *shell.LayerSurface) error

func (*Compositor) LidPending

func (c *Compositor) LidPending() bool

func (*Compositor) LockChanged

func (c *Compositor) LockChanged() error

func (*Compositor) LockOutputSize

func (c *Compositor) LockOutputSize(wl *sw.WlOutput) (image.Point, bool)

func (*Compositor) LockReleasing

func (c *Compositor) LockReleasing() error

func (*Compositor) MintActivationToken

func (c *Compositor) MintActivationToken(cl *server.Client, serial uint32) (string, error)

func (*Compositor) MirrorDraws

func (c *Compositor) MirrorDraws(name string) (uint64, bool)

func (*Compositor) Now

func (c *Compositor) Now() time.Duration

func (*Compositor) OffScreen

func (c *Compositor) OffScreen(b *dmabuf.Buffer, f func() error) error

func (*Compositor) OnIPCEvents

func (c *Compositor) OnIPCEvents(e IPCEvents)

func (*Compositor) OnModifiersReleased

func (c *Compositor) OnModifiersReleased(mods uint32, done func() error)

func (*Compositor) OnStateChange

func (c *Compositor) OnStateChange(f func())

func (*Compositor) OutputAdded

func (c *Compositor) OutputAdded(b backend.Output) error

func (*Compositor) OutputChanged

func (c *Compositor) OutputChanged(b backend.Output) error

func (*Compositor) OutputDamaged

func (c *Compositor) OutputDamaged(b backend.Output) error

func (*Compositor) OutputDescription

func (c *Compositor) OutputDescription(o *output.Output) *colorspace.Description

func (*Compositor) OutputGamma

func (c *Compositor) OutputGamma(o *output.Output) (backend.Gamma, bool)

func (*Compositor) OutputRemoved

func (c *Compositor) OutputRemoved(b backend.Output) error

func (*Compositor) Outputs

func (c *Compositor) Outputs() []*output.Output

func (*Compositor) OverviewListed

func (c *Compositor) OverviewListed(o *output.Output) []wm.WindowID

func (*Compositor) OverviewProgress

func (c *Compositor) OverviewProgress(now time.Duration) float64

func (*Compositor) OverviewSlots

func (c *Compositor) OverviewSlots(o *output.Output) []image.Rectangle

func (*Compositor) OverviewThumbRedraws

func (c *Compositor) OverviewThumbRedraws() uint64

func (*Compositor) OverviewThumbWindows

func (c *Compositor) OverviewThumbWindows(o *output.Output, id wm.WorkspaceID) []wm.WindowID

func (*Compositor) OverviewThumbsStale

func (c *Compositor) OverviewThumbsStale() bool

func (*Compositor) OverviewWindowRect

func (c *Compositor) OverviewWindowRect(id wm.WindowID, now time.Duration) (image.Rectangle, bool)

func (*Compositor) Owner

func (c *Compositor) Owner(res *sw.WlOutput) *output.Output

func (*Compositor) Park

func (c *Compositor) Park()

func (*Compositor) PickWindow

func (c *Compositor) PickWindow(answer func(*wm.WindowID, error)) (func(), error)

func (*Compositor) PointerFocusChanged

func (c *Compositor) PointerFocusChanged(*surface.Surface) error

func (*Compositor) PointerWarps

func (c *Compositor) PointerWarps() uint64

func (*Compositor) PopupConstraint

func (c *Compositor) PopupConstraint(root shell.PopupRoot) image.Rectangle

func (*Compositor) PopupMapped

func (c *Compositor) PopupMapped(*shell.Popup) error

func (*Compositor) PopupUnmapped

func (c *Compositor) PopupUnmapped(*shell.Popup) error

func (*Compositor) PopupsChanged

func (c *Compositor) PopupsChanged() error

func (*Compositor) PowerChanged

func (c *Compositor) PowerChanged()

func (*Compositor) Powered

func (c *Compositor) Powered(o *output.Output) bool

func (*Compositor) PreferredDescription

func (c *Compositor) PreferredDescription(s *surface.Surface) *colorspace.Description

func (*Compositor) PrepareDispatch

func (c *Compositor) PrepareDispatch(a wm.Action) func() error

func (*Compositor) Presented

func (c *Compositor) Presented(b backend.Output, p backend.Presentation) error

func (*Compositor) Reconfigure

func (c *Compositor) Reconfigure(cfg Config) error

func (*Compositor) ReloadConfig

func (c *Compositor) ReloadConfig()

func (*Compositor) ReloadPending

func (c *Compositor) ReloadPending() bool

func (*Compositor) RemoveOutput

func (c *Compositor) RemoveOutput(name string) error

func (*Compositor) Resume

func (c *Compositor) Resume() error

func (*Compositor) Reuploads

func (c *Compositor) Reuploads() uint64

func (*Compositor) RuleEvaluations

func (c *Compositor) RuleEvaluations() int

func (*Compositor) ScaleXwayland

func (c *Compositor) ScaleXwayland(clients func(*server.Client) bool) error

func (*Compositor) Seat

func (c *Compositor) Seat() *seat.Seat

func (*Compositor) Selection

func (c *Compositor) Selection(k data.Kind) bool

func (*Compositor) SelectionChanged

func (c *Compositor) SelectionChanged(k data.Kind, src data.Source) error

func (*Compositor) SetDropTarget

func (c *Compositor) SetDropTarget(t data.DropTarget)

func (*Compositor) SetOutputScale

func (c *Compositor) SetOutputScale(b backend.Output, scale output.Scale) error

func (*Compositor) SetPower

func (c *Compositor) SetPower(o *output.Output, on bool) error

func (*Compositor) SetPowerSaver

func (c *Compositor) SetPowerSaver(on bool)

func (*Compositor) SetSelection

func (c *Compositor) SetSelection(k data.Kind, src data.Source) error

func (*Compositor) Settle

func (c *Compositor) Settle() error

func (*Compositor) ShmSyncReads

func (c *Compositor) ShmSyncReads() uint64

func (*Compositor) ShowConfigProblems

func (c *Compositor) ShowConfigProblems(p ConfigProblems)

func (*Compositor) Snapshot

func (c *Compositor) Snapshot() ipc.Snapshot

func (*Compositor) Stalls

func (c *Compositor) Stalls(id wm.WindowID) (int, bool)

func (*Compositor) StateUpdates

func (c *Compositor) StateUpdates() uint64

func (*Compositor) SurfaceScanout

func (c *Compositor) SurfaceScanout(s *surface.Surface) gpu.ScanoutTarget

func (*Compositor) SwitcherFrames

func (c *Compositor) SwitcherFrames() uint64

func (*Compositor) SwitcherOpen

func (c *Compositor) SwitcherOpen() bool

func (*Compositor) SwitcherPreview

func (c *Compositor) SwitcherPreview(id wm.WindowID) (image.Rectangle, bool)

func (*Compositor) SwitcherThumbRedraws

func (c *Compositor) SwitcherThumbRedraws() uint64

func (*Compositor) SwitcherWindows

func (c *Compositor) SwitcherWindows() []wm.WindowID

func (*Compositor) ToplevelChanged

func (c *Compositor) ToplevelChanged(t *shell.Toplevel, change shell.Change) error

func (*Compositor) ToplevelInitialCommit

func (c *Compositor) ToplevelInitialCommit(st *shell.Toplevel) error

func (*Compositor) ToplevelMapped

func (c *Compositor) ToplevelMapped(t *shell.Toplevel) error

func (*Compositor) ToplevelRequest

func (c *Compositor) ToplevelRequest(t *shell.Toplevel, r shell.Request) error

func (*Compositor) ToplevelUnmapped

func (c *Compositor) ToplevelUnmapped(t *shell.Toplevel) error

func (*Compositor) Toplevels

func (c *Compositor) Toplevels() []*shell.Toplevel

func (*Compositor) TraceFrames

func (c *Compositor) TraceFrames(r *frametrace.Recorder)

func (*Compositor) UpgradeBlockers

func (c *Compositor) UpgradeBlockers(dropX11 bool) []string

func (*Compositor) Urgent

func (c *Compositor) Urgent(t *shell.Toplevel) bool

func (*Compositor) UserActive

func (c *Compositor) UserActive(client *server.Client, serial uint32) bool

func (*Compositor) WM

func (c *Compositor) WM() wm.State

func (*Compositor) WaitForExecs

func (c *Compositor) WaitForExecs()

func (*Compositor) WatchSelection

func (c *Compositor) WatchSelection(f func(data.Kind, data.Source) error)

func (*Compositor) WatchWorkArea

func (c *Compositor) WatchWorkArea(f func(image.Rectangle))

func (*Compositor) WorkArea

func (c *Compositor) WorkArea() image.Rectangle

func (*Compositor) XDragOver

func (c *Compositor) XDragOver(over func(*surface.Surface, bool) error) error

func (*Compositor) XDragTarget

func (c *Compositor) XDragTarget() (*surface.Surface, float64, float64)

func (*Compositor) XWindowChanged

func (c *Compositor) XWindowChanged(w *xwayland.Window) error

func (*Compositor) XWindowMapped

func (c *Compositor) XWindowMapped(w *xwayland.Window) error

func (*Compositor) XWindowRequest

func (c *Compositor) XWindowRequest(w *xwayland.Window, r xwayland.Request) error

func (*Compositor) XWindowResponsive

func (c *Compositor) XWindowResponsive(w *xwayland.Window, responsive bool) error

func (*Compositor) XWindowSynced

func (c *Compositor) XWindowSynced(*xwayland.Window) error

func (*Compositor) XWindowUnmapped

func (c *Compositor) XWindowUnmapped(w *xwayland.Window) error

type Config

type Config struct {
	Seat             seat.Config
	Cursor           CursorConfig
	WM               wm.Settings
	Binds            []binds.Bind
	Report           func(error)
	ExecOutput       ExecOutput
	Decor            Decor
	Font             *gtext.Typeface
	Icons            *icontheme.Theme
	Rules            []wm.Rule
	Swallow          Swallow
	Outputs          OutputRules
	VirtualOutputs   []VirtualOutput
	ColorManagement  bool
	Tearing          bool
	Hooks            Hooks
	LidClosedAtStart bool
	InheritTimeout   time.Duration
	HoldBound        time.Duration
	HiddenFrame      time.Duration
	PowerSaverRate   int
	HDRHold          time.Duration
	HoldOpening      bool
	Animations       anim.Table
	LayerRules       []wm.LayerRule
	WorkspaceRules   []WorkspaceRule
	Gestures         Gestures
	HotCorners       HotCorners
	Overview         OverviewStyle
	Switcher         SwitcherStyle
	Slower           map[render.Speed]Effects
	ClientHotkeys    bool
	CursorBehavior   CursorBehavior
	DeviceOutputs    map[string]wm.OutputMatch
}

func DefaultConfig

func DefaultConfig(keymap *xkb.Keymap, font *gtext.Typeface) Config

func PlainConfig

func PlainConfig(keymap *xkb.Keymap, font *gtext.Typeface) Config

type ConfigProblems

type ConfigProblems struct {
	Rejected bool
	Messages []string
}

type Corner

type Corner uint8
const (
	TopLeft Corner = iota
	TopRight
	BottomLeft
	BottomRight
	CornerCount
)

func (Corner) String

func (k Corner) String() string

type CursorBehavior

type CursorBehavior struct {
	HideWhileTyping bool
	HideAfter       time.Duration
	ShakeToFind     bool
}

type CursorColorBypass

type CursorColorBypass interface {
	CursorSkipsCRTCColor() bool
}

type CursorConfig

type CursorConfig struct {
	Theme *xcursor.Theme
	Size  int
}

type Decor

type Decor struct {
	BorderWidth                  int
	Rounding                     int
	Opacity                      Opacity
	Dim                          Dim
	Shadow                       Shadow
	Blur                         Blur
	ActiveBorder, InactiveBorder render.Border
	Tab                          TabStyle
	Titlebar                     Titlebars
	DragPreview                  DragPreview
}

func DefaultDecor

func DefaultDecor(accent render.Color) Decor

func PlainDecor

func PlainDecor() Decor

type Dim

type Dim struct {
	Inactive bool
	Strength float32
}

type DragPreview

type DragPreview struct {
	Enabled      bool
	Opacity      float32
	Blur         bool
	SnapDistance int
	SnapWindows  bool
	Switch       DragSwitch
}

type DragSwitch

type DragSwitch struct {
	Width  int
	Frames int
}

type Effects

type Effects struct {
	Decor      Decor
	Animations anim.Table
	Overview   OverviewStyle
}

type ExactMode

type ExactMode struct {
	Size       image.Point
	RefreshMHz int32
}

type ExecOutput

type ExecOutput struct {
	Stdout *os.File
	Stderr *os.File
}

type Gestures

type Gestures struct {
	Binds     []binds.GestureBind
	Touch     []binds.GestureBind
	Distance  float64
	EdgeWidth int
	Natural   bool
	Devices   map[string]bool
}

func DefaultGestures

func DefaultGestures() Gestures

type HDRPolicy

type HDRPolicy uint8
const (
	HDROff HDRPolicy = iota
	HDROn
	HDRFullscreen
)

type HandoverState

type HandoverState struct {
	Display    *server.State
	Seat       seat.HandoverState
	WM         json.RawMessage
	Windows    []windowPlan
	NextWindow wm.WindowID
	Cursor     image.Point
	Off        []string
}

type HighResMode

type HighResMode struct{}

type HoldStats

type HoldStats struct {
	Landed            int
	Expired           int
	Longest           time.Duration
	Last              time.Duration
	Armed             time.Duration
	MapToShown        int
	LongestMapToShown int
}

type Hooks

type Hooks struct {
	Reload         func() (apply func() error)
	ParseProp      func(key, value string) (wm.Decision, error)
	Exit           func() error
	SwitchVT       func(vt uint32) error
	OpenFrameTrace func(path string, now func() time.Duration) (*frametrace.Recorder, error)
	Lid            LidPolicy
	Spawner        *spawn.Spawner
}

type HotCorner

type HotCorner struct {
	Action    wm.Action
	Modifiers binds.ModifierSet
	Mods      uint32
}

type HotCornerSet

type HotCornerSet [CornerCount]HotCorner

func (HotCornerSet) Resolve

func (s HotCornerSet) Resolve(r binds.Resolver) (HotCornerSet, error)

type HotCorners

type HotCorners struct {
	Corners    HotCornerSet
	Pressure   float64
	Fullscreen bool
}

func DefaultHotCorners

func DefaultHotCorners() HotCorners

type IPCEvents

type IPCEvents interface {
	Dispatched(a wm.Action)
	Announce(e ipc.Event)
}

type Insets

type Insets struct {
	Top, Right, Bottom, Left int
}

type LidPolicy

type LidPolicy struct {
	Suspend   func() error
	OnBattery func() (bool, error)
}

type Look

type Look struct {
	Decor    Decor
	Motion   map[anim.Event]anim.Setting
	Overview OverviewStyle
}

func DefaultLook

func DefaultLook(s render.Speed, accent render.Color) Look

type Mica

type Mica struct {
	Enabled      bool
	Size, Passes int
	Tint         color.RGBA
}

type ModePolicy

type ModePolicy interface {
	// contains filtered or unexported methods
}

type Opacity

type Opacity struct {
	Active, Inactive, Fullscreen float32
}

type OutputRule

type OutputRule struct {
	Match         wm.OutputMatch
	Mode          ModePolicy
	Position      *image.Point
	Scale         output.Scale
	Depth         backend.BitDepth
	VRR           VRRPolicy
	Disabled      bool
	Shader        string
	HDR           HDRPolicy
	SDRBrightness float64
	HDRPeak       float64
	ICC           *colorspace.Description
	ICCPath       string
	HotCorners    *HotCornerSet
	Transform     render.Transform
	Mirror        *wm.OutputMatch
	Reserved      Insets
}

type OutputRules

type OutputRules struct {
	Named    []OutputRule
	Fallback OutputRule
}

func (OutputRules) For

func (OutputRules) ResolveHotCorners

func (rs OutputRules) ResolveHotCorners(r binds.Resolver) (OutputRules, error)

type OverviewStyle

type OverviewStyle struct {
	Blur bool
	Dim  float32
}

func DefaultOverviewStyle

func DefaultOverviewStyle() OverviewStyle

type PreferredMode

type PreferredMode struct{}

type Shadow

type Shadow struct {
	Enabled          bool
	Range            int
	Power            int
	Sharp            bool
	Offset           image.Point
	Scale            float64
	Active, Inactive render.Color
}

type StateColors

type StateColors struct {
	Active, Inactive, Urgent TabColors
}

type Swallow

type Swallow struct {
	Terminals   *regexp.Regexp
	ExceptTitle *regexp.Regexp
	Proc        fs.ReadFileFS
}

type SwitcherStyle

type SwitcherStyle struct {
	OpenDelay time.Duration
}

func DefaultSwitcherStyle

func DefaultSwitcherStyle() SwitcherStyle

type TabColors

type TabColors struct {
	Background, Text render.Color
}

type TabStyle

type TabStyle struct {
	StateColors
	Height, Padding, TextHeight, TextPadding int
}

type TitlebarButton

type TitlebarButton uint8
const (
	TitlebarMinimize TitlebarButton = iota + 1
	TitlebarMaximize
	TitlebarClose
)

type TitlebarDoubleClick

type TitlebarDoubleClick uint8
const (
	DoubleClickMaximize TitlebarDoubleClick = iota
	DoubleClickFloat
)

type TitlebarLights

type TitlebarLights struct {
	Close, Minimize, Maximize render.Color
}

type TitlebarSide

type TitlebarSide uint8
const (
	TitlebarLeft TitlebarSide = iota
	TitlebarRight
)

type Titlebars

type Titlebars struct {
	StateColors
	Lights      TitlebarLights
	Floating    bool
	Height      int
	Buttons     [titlebarButtonKinds]TitlebarButton
	Side        TitlebarSide
	DoubleClick TitlebarDoubleClick
}

type VRRPolicy

type VRRPolicy uint8
const (
	VRROff VRRPolicy = iota
	VRROn
	VRRFullscreen
)

type VirtualOutput

type VirtualOutput struct {
	Name       string
	Size       image.Point
	RefreshMHz int32
}

type WorkspaceRule

type WorkspaceRule struct {
	wm.WorkspaceRule
	Bind *wm.OutputMatch
}

Jump to

Keyboard shortcuts

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