Documentation
¶
Overview ¶
Package colors derives a color scheme from the wallpaper video with pywal, so terminals and bars match what is playing on the desktop.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pywal ¶
type Pywal struct {
Runner shell.Runner
// TempDir is where the frame's directory is created; "" means os.TempDir().
TempDir string
// Pick chooses the frame's timestamp in [0, limit). nil picks uniformly at
// random; tests set it to get a deterministic frame.
Pick func(limit time.Duration) time.Duration
}
Pywal feeds a random frame of a video to pywal. The frame is only needed while wal reads it, so it lives in a private temporary directory that is always removed.
Click to show internal directories.
Click to hide internal directories.