Versions in this module Expand all Collapse all v0 v0.1.0 Dec 21, 2022 Changes in this version + 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 struct + BottomLeft string + BottomRight string + Horizontal string + TopLeft string + TopRight string + Vertical string + VerticalLeft string + VerticalRight string + type WidgetFn func(*viper.Viper, formatFn) (WidgetResponse, error) + type WidgetResponse struct + Content string + Name string + Place string + 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)