modules

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClockModule

func NewClockModule(_ config.ModuleConfig) module.Module

func NewGitHubModule

func NewGitHubModule(cfg config.ModuleConfig) module.Module

func NewGreetingModule

func NewGreetingModule(cfg config.ModuleConfig) module.Module

func NewSpotifyModule added in v0.1.0

func NewSpotifyModule(cfg config.ModuleConfig) module.Module

func NewSystemModule

func NewSystemModule(_ config.ModuleConfig) module.Module

func NewUptimeModule

func NewUptimeModule(_ config.ModuleConfig) module.Module

func NewWeatherModule

func NewWeatherModule(cfg config.ModuleConfig) module.Module

Types

type ClockModule

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

func (*ClockModule) Init

func (m *ClockModule) Init() tea.Cmd

func (*ClockModule) MinSize

func (m *ClockModule) MinSize() (int, int)

func (*ClockModule) Name

func (m *ClockModule) Name() string

func (*ClockModule) Update

func (m *ClockModule) Update(msg tea.Msg) tea.Cmd

func (*ClockModule) View

func (m *ClockModule) View(width, height int) string

type GitHubModule

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

func (*GitHubModule) Init

func (m *GitHubModule) Init() tea.Cmd

func (*GitHubModule) MinSize

func (m *GitHubModule) MinSize() (int, int)

func (*GitHubModule) Name

func (m *GitHubModule) Name() string

func (*GitHubModule) Update

func (m *GitHubModule) Update(msg tea.Msg) tea.Cmd

func (*GitHubModule) View

func (m *GitHubModule) View(width, height int) string

type GreetingModule

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

func (*GreetingModule) Init

func (m *GreetingModule) Init() tea.Cmd

func (*GreetingModule) MinSize

func (m *GreetingModule) MinSize() (int, int)

func (*GreetingModule) Name

func (m *GreetingModule) Name() string

func (*GreetingModule) Update

func (m *GreetingModule) Update(_ tea.Msg) tea.Cmd

func (*GreetingModule) View

func (m *GreetingModule) View(width, height int) string

type SpotifyModule added in v0.1.0

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

func (*SpotifyModule) ImagePlacements added in v0.1.0

func (m *SpotifyModule) ImagePlacements() []module.ImagePlacement

ImagePlacements implements module.ImagePlacer. Returns the kitty display-by-ID escape positioned at row 0, col 0 (relative to the module's content area) with cell size constraints.

func (*SpotifyModule) Init added in v0.1.0

func (m *SpotifyModule) Init() tea.Cmd

func (*SpotifyModule) MinSize added in v0.1.0

func (m *SpotifyModule) MinSize() (int, int)

func (*SpotifyModule) Name added in v0.1.0

func (m *SpotifyModule) Name() string

func (*SpotifyModule) Update added in v0.1.0

func (m *SpotifyModule) Update(msg tea.Msg) tea.Cmd

func (*SpotifyModule) View added in v0.1.0

func (m *SpotifyModule) View(width, height int) string

type SystemModule

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

func (*SystemModule) Init

func (m *SystemModule) Init() tea.Cmd

func (*SystemModule) MinSize

func (m *SystemModule) MinSize() (int, int)

func (*SystemModule) Name

func (m *SystemModule) Name() string

func (*SystemModule) Update

func (m *SystemModule) Update(msg tea.Msg) tea.Cmd

func (*SystemModule) View

func (m *SystemModule) View(width, height int) string

type UptimeModule

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

func (*UptimeModule) Init

func (m *UptimeModule) Init() tea.Cmd

func (*UptimeModule) MinSize

func (m *UptimeModule) MinSize() (int, int)

func (*UptimeModule) Name

func (m *UptimeModule) Name() string

func (*UptimeModule) Update

func (m *UptimeModule) Update(msg tea.Msg) tea.Cmd

func (*UptimeModule) View

func (m *UptimeModule) View(width, height int) string

type WeatherModule

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

func (*WeatherModule) Init

func (m *WeatherModule) Init() tea.Cmd

func (*WeatherModule) MinSize

func (m *WeatherModule) MinSize() (int, int)

func (*WeatherModule) Name

func (m *WeatherModule) Name() string

func (*WeatherModule) Update

func (m *WeatherModule) Update(msg tea.Msg) tea.Cmd

func (*WeatherModule) View

func (m *WeatherModule) View(width, height int) string

Jump to

Keyboard shortcuts

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