nirititle

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: 5 Imported by: 0

Documentation

Overview

Package nirititle shows the focused window's title on the bar of the output where that window lives. niri reports a single global focus and attributes each window to a workspace (and thus an output), so — unlike the River title module — no per-seat bookkeeping is needed: we just ask the niri package which output currently holds the focused window.

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 renders the focused-window title for one output.

func New

func New(output string, fg, bg color.RGBA, maxRunes int) *Title

New builds a per-output title module bound to the given output connector.

func (*Title) HoverText

func (t *Title) HoverText() string

HoverText returns the untruncated focused-window title for the tooltip popup. 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