Documentation ¶
Overview ¶
Package quobar manages status bar widgets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Desired height of the status bar. HeightMillimeters float32 // Truetype font file (*.ttf) to use by default FontPath string Foreground color.RGBA Background color.RGBA }
Config contains configuration common to all plugins.
type Plugin ¶
type Plugin interface { // New returns a new instance of this plugin. // // In addition to methods required by the interface, the returned // value must support JSON unmarshaling. New(*State) (Drawer, error) }
Plugin is implemented by all status bar widget plugins.
TODO layout negotiation, something like flexbox
type Resolution ¶
type Resolution float32
Resolution maps physical measurements to pixels. This is useful for drawing widgets at a suitable size regardless to display pixel density.
func NewResolution ¶
func NewResolution(pixels uint16, mm uint32) Resolution
NewResolution computes the resolution of a screen with the given dimensions.
func (Resolution) Pixels ¶
func (p Resolution) Pixels(mm float32) int
Pixels converts millimeter measurements into pixels.
type State ¶
type State struct { // Global configuration, as loaded from the configuration file. Config Config // The detected resolution of the display. Resolution Resolution }
State contains runtime state visible to the plugins.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
quobar
Command quobar is an X11 status bar.
|
Command quobar is an X11 status bar. |
Package draw provides helpers for common drawing needs.
|
Package draw provides helpers for common drawing needs. |
sparkline
Package sparkline draws small charts of timeseries data.
|
Package sparkline draws small charts of timeseries data. |
truetype
Package truetype draws a textual message.
|
Package truetype draws a textual message. |
internal
|
|
Package plugin contains status bar widget plugins.
|
Package plugin contains status bar widget plugins. |
battery
Package battery provides a status bar widget that displays battery status.
|
Package battery provides a status bar widget that displays battery status. |
clock
Package clock provides a status bar widget that displays the current time.
|
Package clock provides a status bar widget that displays the current time. |
diskfree
Package diskfree provides a status bar widget that displays disk free in the users home directory.
|
Package diskfree provides a status bar widget that displays disk free in the users home directory. |
meminfo
Package diskfree provides a status bar widget that display disk free in the users home directory.
|
Package diskfree provides a status bar widget that display disk free in the users home directory. |
Click to show internal directories.
Click to hide internal directories.