clock

package
v0.0.0-...-88d6830 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClockModule

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

func (*ClockModule) Channels

func (mod *ClockModule) Channels() (<-chan bool, chan<- modules.Event)

func (*ClockModule) Dependencies

func (mod *ClockModule) Dependencies() []string

func (*ClockModule) Name

func (mod *ClockModule) Name() string

func (*ClockModule) Render

func (mod *ClockModule) Render() []modules.EventCell

func (*ClockModule) Run

func (mod *ClockModule) Run() (<-chan bool, chan<- modules.Event, error)

type MouseOptions

type MouseOptions struct {
	Fg     *config.Color    `yaml:"fg"`
	Bg     *config.Color    `yaml:"bg"`
	Cursor *config.Cursor   `yaml:"cursor"`
	Tick   *config.Duration `yaml:"tick"`
	Format *string          `yaml:"format"`
}

type Options

type Options struct {
	Fg      config.Color                      `yaml:"fg"`
	Bg      config.Color                      `yaml:"bg"`
	Cursor  config.Cursor                     `yaml:"cursor"`
	Tick    config.Duration                   `yaml:"tick"`
	Format  string                            `yaml:"format"`
	OnClick config.MouseActions[MouseOptions] `yaml:"onmouse"`
}

Jump to

Keyboard shortcuts

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