feat: add NET graph (download/upload) to System tab
La pestaña Sistema ahora muestra una gráfica de red bajo DISK I/O con dos series (download en cian, upload en naranja) y las velocidades en vivo en la cabecera. Reutiliza los históricos hist.down/hist.up que ya se actualizaban cada frame para la pestaña Red, sin coste extra de muestreo. También fija own_window_type='dock' para que el WM no mueva el widget con Alt+drag y siga recibiendo clicks en las pestañas. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -18,9 +18,9 @@ conky.config = {
|
|||||||
maximum_width = 290,
|
maximum_width = 290,
|
||||||
minimum_height = 545,
|
minimum_height = 545,
|
||||||
|
|
||||||
-- Ventana (tipo 'normal' = recibe clicks; 'desktop' los ignora) ----------
|
-- Ventana ('dock' = recibe clicks Y el WM no lo mueve con Alt+drag; 'normal' lo dejaba mover; 'desktop' no recibe clicks) ----------
|
||||||
own_window = true,
|
own_window = true,
|
||||||
own_window_type = 'normal',
|
own_window_type = 'dock',
|
||||||
own_window_argb_visual = true,
|
own_window_argb_visual = true,
|
||||||
own_window_transparent = true,
|
own_window_transparent = true,
|
||||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||||
|
|||||||
@@ -381,6 +381,14 @@ local function draw_sys(cr)
|
|||||||
gh = row("DISK I/O", str("${diskio}"), COL.orange, 26)
|
gh = row("DISK I/O", str("${diskio}"), COL.orange, 26)
|
||||||
graph(cr, x, y, gw, gh, { { data = hist.diskio, c = COL.purple, fill = true } }); y = y + gh + 6
|
graph(cr, x, y, gw, gh, { { data = hist.diskio, c = COL.purple, fill = true } }); y = y + gh + 6
|
||||||
|
|
||||||
|
-- NET (red: download + upload). Dos series: down (cian) y up (naranja).
|
||||||
|
gh = row("NET", "↓ " .. str("${downspeed " .. NIF .. "}") ..
|
||||||
|
" ↑ " .. str("${upspeed " .. NIF .. "}"), COL.blue, 26)
|
||||||
|
graph(cr, x, y, gw, gh, {
|
||||||
|
{ data = hist.down, c = COL.down },
|
||||||
|
{ data = hist.up, c = COL.up },
|
||||||
|
}); y = y + gh + 6
|
||||||
|
|
||||||
-- Uso de discos
|
-- Uso de discos
|
||||||
text(cr, x, y + 10, "USO DE DISCOS", COL.snow, 10, true); y = y + 16
|
text(cr, x, y + 10, "USO DE DISCOS", COL.snow, 10, true); y = y + 16
|
||||||
local disks = { "/", "/mnt/1tb", "/mnt/2tb", "/mnt/16tb" }
|
local disks = { "/", "/mnt/1tb", "/mnt/2tb", "/mnt/16tb" }
|
||||||
|
|||||||
Reference in New Issue
Block a user