Ring
Ring progress, Clockwise direction: $$\frac{π}{2}$$
> $$\frac{-3π}{2}$$
.
This widget can only be as a stand alone widget, it should be contained with in a Box
.
Ring provide some basic presets for system info.
{
"frame_rate": 144,
"type": "ring",
"preset": "disk",
"prefix": "Disk "
}
bg_color
Color of the background of widget.
Support: #rgb
/#rrggbb
/#rrrgggbbb
/rgb(r, g, b)
/rgba(r, g, b, a)
...
For full info, check RGBA
Type: string
Default: #808080
fg_color
Color of the foreground of widget.
Support: #rgb
/#rrggbb
/#rrrgggbbb
/rgb(r, g, b)
/rgba(r, g, b, a)
...
For full info, check RGBA
Type: string
Default: #FFB847
frame_rate
Frame rate per second, won't hurt if over screen refresh rate.
Type: int
Default: 60
transition_duration
Time cost of showing the widget from the edge.
Millisecond.
Type: int
Default: 100
radius
Radius of the ring.
Type: int
Default: 13
ring_width
Ring width, should be less than radius.
Type: int
Default: 5
prefix
Text on the left side of the ring.
Type: null | string
Default: null
font_family
Font family of all text within ring widget.
Type: null | string
Default: null
for default font
preset
Preset update function of the ring:
can only be ram/swap/cpu/battery/disk/custom
Type: string | object
ram
type*
const `ram`
swap
type*
const `swap`
cpu
type*
const `cpu`
battery
type*
const `battery`
disk
type*
const `disk`
partition
Disk partition.
Type: string
Default: /
custom
type*
const `custom`
update_with_interval_ms
Update progress with command given milliseconds.
Progress must be between 0 and 1.
You can disable template by not providing text.
Example: [1000, "printf \"0.2333\\n23.33%\""]
Type: [[int, string]...]
Default: []