github.com/snhilde/statusbar/v5 (go): Package statusbar displays various information on the dwm statusbar.  The design of this statusbar manager is modular by nature; you create the main process with this package and then populate it with only the information you want using individual modules. For example, if you want to show only the time and weather, then you would import only those two modules and add their objects to the statusbar, resulting in only the time and weather to appear on the statusbar for dwm. This modular design allows flexibility in customizing each individual statusbar and ease in management.  This package is the engine that controls the modular routines. For the modules currently integrated with this framework and included in this repository, see the child packages that begin with "sb". There are currently modules that display a range of information, including various system resources, personal TODO lists, the current weather, VPN status, and the current time.  To integrate a custom module into this statusbar framework, the routine's object needs to implement the RoutineHandler interface, which includes these methods:  It is suggested that this object be created by New(), which will also initialize any members of the object (if needed).  The sample code below creates a new statusbar, adds some routines to it, and begins displaying the formatted output. In dwm, we are using the dualstatus patch, which creates a top and bottom bar for extra statusbar real estate. The top bar will display the time, and the bottom bar will display the disk usage and CPU stats.  Package statusbar formats and displays information on the dwm statusbar by managing modular data routines.
Keywords: dwm|dwm-statusbar|statusbar|system