Documentation ¶
Index ¶
- func AlignContent(output WidgetResponse) string
- func Border(contents []string, borderStyle lipgloss.Style) string
- func BorderGradient(contents []string, grad colorgrad.Gradient) string
- func Formatter(fg, bg string, bold bool) func(string) string
- func GetWidgetWidth() int
- func PBar(percentage float64, width int, bar, space string) string
- func PBarColor(percentage float64, width int, bar, space string, ...) string
- func PBarGradient(percentage float64, width int, activeGrad, inactiveGrad colorgrad.Gradient, ...) string
- type BorderChars
- type WidgetFn
- type WidgetResponse
- func BannerWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
- func DiskWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
- func DockerWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
- func NaptarWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
- func NetworkWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
- func SysinfoWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
- func SystemdWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlignContent ¶
func AlignContent(output WidgetResponse) string
func BorderGradient ¶
TODO display widget name in top border
func GetWidgetWidth ¶
func GetWidgetWidth() int
Types ¶
type BorderChars ¶
type WidgetResponse ¶
func BannerWidget ¶
func BannerWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
BannerWidget is a widget that displays the host banner
func DiskWidget ¶
func DiskWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
***
- DiskWidget is a widget that displays partition usage statistics
- Configuration options:
- - disk.partitions: list of disks to display [optional]
func DockerWidget ¶
func DockerWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
func NaptarWidget ¶
func NaptarWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
NaptarWidget is a widget that displays calendar information
func NetworkWidget ¶
func NetworkWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
func SysinfoWidget ¶
func SysinfoWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
SysinfoWidget is a widget that displays the host banner
func SystemdWidget ¶
func SystemdWidget(v *viper.Viper, f formatFn) (WidgetResponse, error)
Click to show internal directories.
Click to hide internal directories.