statusbar

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TickCmd

func TickCmd() tea.Cmd

command to update every second. see Init and case tickMsg in Update.

Types

type Model

type Model struct {
	State  mpdclient.State
	Volume int
	// contains filtered or unexported fields
}

func New

func New() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Reset

func (m *Model) Reset()

func (*Model) SetOptionText

func (m *Model) SetOptionText(text string)

func (*Model) SetPlaying

func (m *Model) SetPlaying(track mpdclient.Track, elapsed int, state mpdclient.State, volume int)

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type TickMsg

type TickMsg time.Time

Jump to

Keyboard shortcuts

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