|
| 1 | +---@meta |
| 2 | +---@diagnostic disable:unused-local |
| 3 | + |
| 4 | +---@class Widgets.WidgetOpts |
| 5 | +---@field color? string |
| 6 | +---@field icon? string|false |
| 7 | +---@field throttle? integer |
| 8 | + |
| 9 | +---@class WidgetsOpts |
| 10 | +---@field left? Widgets.Widget[] |
| 11 | +---@field right? Widgets.Widget[] |
| 12 | +---@field separator? { text?: string, color?: string } |
| 13 | + |
| 14 | +---@class Widgets.Battery |
| 15 | +---@field charge Widgets.Battery.Charge |
| 16 | + |
| 17 | +---@class Widgets.CPU |
| 18 | +---@field utilization Widgets.CPU.Utilization |
| 19 | + |
| 20 | +---@class Widgets.Disk |
| 21 | +---@field read Widgets.Disk.Read |
| 22 | +---@field space Widgets.Disk.Space |
| 23 | +---@field write Widgets.Disk.Write |
| 24 | + |
| 25 | +---@class Widgets.Network |
| 26 | +---@field download Widgets.Network.Download |
| 27 | +---@field upload Widgets.Network.Upload |
| 28 | + |
| 29 | +---@class Widgets.RAM |
| 30 | +---@field utilization Widgets.RAM.Utilization |
| 31 | + |
| 32 | +---@class Widgets.CPU.Utilization |
| 33 | +local U = {} |
| 34 | + |
| 35 | +---@param opts? WidgetsOpts |
| 36 | +---@return Widgets.Widget widget |
| 37 | +function U.widget(opts) end |
| 38 | + |
| 39 | +---@class Widgets.Battery.Charge |
| 40 | +local C = {} |
| 41 | + |
| 42 | +---@param opts? WidgetsOpts |
| 43 | +---@return Widgets.Widget widget |
| 44 | +function C.widget(opts) end |
| 45 | + |
| 46 | +---@class Widgets.Disk.Read |
| 47 | +local R = {} |
| 48 | + |
| 49 | +---@param opts? WidgetsOpts |
| 50 | +---@return Widgets.Widget widget |
| 51 | +function R.widget(opts) end |
| 52 | + |
| 53 | +---@class Widgets.Disk.Space |
| 54 | +local S = {} |
| 55 | + |
| 56 | +---@param opts? WidgetsOpts |
| 57 | +---@return Widgets.Widget widget |
| 58 | +function S.widget(opts) end |
| 59 | + |
| 60 | +---@class Widgets.Disk.Write |
| 61 | +local Write = {} |
| 62 | + |
| 63 | +---@param opts? WidgetsOpts |
| 64 | +---@return Widgets.Widget widget |
| 65 | +function Write.widget(opts) end |
| 66 | + |
| 67 | +---@class Widgets.Network.Download |
| 68 | +local D = {} |
| 69 | + |
| 70 | +---@param opts? WidgetsOpts |
| 71 | +---@return Widgets.Widget widget |
| 72 | +function D.widget(opts) end |
| 73 | + |
| 74 | +---@class Widgets.RAM.Utilization |
| 75 | +local RU = {} |
| 76 | + |
| 77 | +---@param opts? WidgetsOpts |
| 78 | +---@return Widgets.Widget widget |
| 79 | +function RU.widget(opts) end |
| 80 | + |
| 81 | +---@class Widgets.Network.Upload |
| 82 | +local Upload = {} |
| 83 | + |
| 84 | +---@param opts? WidgetsOpts |
| 85 | +---@return Widgets.Widget widget |
| 86 | +function Upload.widget(opts) end |
| 87 | + |
| 88 | +---@class Widgets.Widget |
| 89 | +---@field opts Widgets.WidgetOpts |
| 90 | +local W = {} |
| 91 | + |
| 92 | +---@return string formatted |
| 93 | +function W.get_text() end |
| 94 | + |
| 95 | +---@return { [1]: { Foreground: string }, [2]: { Text: string } } |
| 96 | +function W.get_formatted() end |
| 97 | + |
| 98 | +---@class Widgets |
| 99 | +---@field battery Widgets.Battery |
| 100 | +---@field cpu Widgets.CPU |
| 101 | +---@field disk Widgets.Disk |
| 102 | +---@field network Widgets.Network |
| 103 | +---@field ram Widgets.RAM |
| 104 | +local M = {} |
| 105 | + |
| 106 | +---@param config Config |
| 107 | +---@param opts WidgetsOpts |
| 108 | +function M.apply_to_config(config, opts) end |
| 109 | + |
| 110 | +-- vim: set ts=2 sts=2 sw=2 et ai si sta: |
0 commit comments