all repos — zion-terminal @ 66508a0a605214d34c7a2231848d44ee63b394b2

dotfiles

opt/zion-terminal/bin/zion-tmux-status (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
#!/usr/bin/env bash
# ZION TERMINAL - status-right do tmux (leve, sem chamadas lentas)
# Cyberdeck criado por Pablo Murad em 2026
export LC_ALL=C
t=$(cat /sys/class/thermal/thermal_zone0/temp 2>/dev/null); t=$((t/1000))
load=$(cut -d' ' -f1 /proc/loadavg)
ts=$(sed -n 's/^TS_ESTADO=//p' /run/zion/status 2>/dev/null)
case "$ts" in conectado) tsl="TS on";; parado) tsl="TS off";; *) tsl="TS ?";; esac
printf '%s · carga %s · %s°C · %s' "$tsl" "$load" "$t" "$(date '+%H:%M')"