{% macro bar(pct) %}{% if pct is not none %}
{% endif %}{% endmacro %} {% macro barrow(label, pct, cls) %}{% if pct is not none %}
{{ label }}
{% endif %}{% endmacro %}
CPU / GPU
{{ (c.cpu | default(0, true)) | round(1) }}%
{{ barrow("CPU", c.cpu) }} {{ barrow("GPU", c.gpu, "gpu") }} {% if c.cpu_temp is not none or c.gpu_temp is not none %}
{% if c.cpu_temp is not none %}CPU {{ c.cpu_temp | round(0) | int }}°C{% endif %} {% if c.cpu_temp is not none and c.gpu_temp is not none %} ·{% endif %} {% if c.gpu_temp is not none %}GPU {{ c.gpu_temp | round(0) | int }}°C{% endif %}
{% endif %}
load {{ (c.load1 | default(0, true)) | round(2) }} · {{ c.cores }} cores
Memory
{{ c.mem_used | humanize }} / {{ c.mem_total | humanize }} ({{ (c.mem_pct | default(0, true)) | round(0) | int }}%)
{{ bar(c.mem_pct) }}
Swap {% if c.swap_total %}{{ c.swap_used | humanize }} / {{ c.swap_total | humanize }} ({{ (c.swap_pct | default(0, true)) | round(0) | int }}%){% else %}none{% endif %}
{{ bar(c.swap_pct if c.swap_total else none) }}
VRAM {% if c.vram_total %}{{ c.vram_used | humanize }} / {{ c.vram_total | humanize }} ({{ (c.vram_pct | default(0, true)) | round(0) | int }}%){% else %}{% endif %}
{{ bar(c.vram_pct if c.vram_total else none) }}
{% if c.battery is not none %}
Battery
{{ c.battery }}%
{% if c.ac_online is not none %}
{% if c.ac_online %}on AC{% else %}on battery{% endif %} {% set st = (c.battery_status or "") | lower %} {% if st == "charging" %} · charging{% elif c.ac_online and st in ("full", "not charging") %} · full{% endif %}
{% endif %}
{% endif %}
Network
{% if c.net_wifi and c.net_wifi.ssid %}
{{ c.net_wifi.ssid }}
Wi-Fi via {{ c.net_wifi.iface }}
{% elif c.net_wifi %}
Wi-Fi
{{ c.net_wifi.iface }} · no connection
{% elif c.net_ifaces %}
wired
{% else %}
{% endif %}
{% for i in c.net_ifaces %}
{{ i.name }}: {% if i.ipv4 %}{{ i.ipv4 | join(", ") }}{% else %}no IPv4{% endif %}
{% else %} no active interfaces {% endfor %}
Uptime
{{ c.uptime }}
{{ c.hostname }}