title

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Title

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

Title shows the focused-view title on the bar of the output where that view actually lives. River's zriver_status_manager_v1 reports the focused view per *seat* (one title at a time, no per-output attribution). To make per-output titles work we maintain a shared map[output]title that's updated whenever a focused_view event arrives — we attribute it to whichever output is currently seat-focused.

All Title instances share that map; each renders only its own slot.

func New

func New(c *wayland.Client, out *wayland.Output, fg, bg color.RGBA, maxRunes int) *Title

New builds a per-output title module. The output is matched via wl_output pointer equality against the seat_status events.

func (*Title) HoverText

func (t *Title) HoverText() string

HoverText returns the untruncated focused-view title for the tooltip popup. Empty when no view is focused on this output. Implements module.Hoverable.

func (*Title) Name

func (t *Title) Name() string

func (*Title) Render

func (t *Title) Render() []module.Segment

func (*Title) Start

func (t *Title) Start(ctx context.Context) <-chan struct{}

Jump to

Keyboard shortcuts

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