Auto-sync from catchthesethighs

This commit is contained in:
adlee-was-taken
2025-12-19 20:14:32 -05:00
parent 2d3b014918
commit bdba67b2c6

View File

@@ -59,7 +59,7 @@ _motd_disk() {
# ============================================================================ # ============================================================================
# Fixed box width # Fixed box width
_M_WIDTH=62 _M_WIDTH=78
_motd_line() { _motd_line() {
local char="$1" local char="$1"
@@ -115,7 +115,7 @@ show_motd() {
echo "${_M_GREY}${_M_RESET} ${_M_BOLD}${_M_BLUE}${_M_RESET} ${_M_BOLD}${hostname}${_M_RESET}${h_spaces}${_M_DIM}${datetime}${_M_RESET} ${_M_GREY}${_M_RESET}" echo "${_M_GREY}${_M_RESET} ${_M_BOLD}${_M_BLUE}${_M_RESET} ${_M_BOLD}${hostname}${_M_RESET}${h_spaces}${_M_DIM}${datetime}${_M_RESET} ${_M_GREY}${_M_RESET}"
# Separator # Separator
echo "${_M_GREY}${hline}${_M_RESET}" echo "${_M_GREY}${hline}${_M_RESET}"
# Stats line - build with exact spacing # Stats line - build with exact spacing
local s1="${_M_YELLOW}▲ up:${_M_RESET}${uptime}" local s1="${_M_YELLOW}▲ up:${_M_RESET}${uptime}"
@@ -126,10 +126,10 @@ show_motd() {
local stats_pad=$((inner - ${#stats_content} - 1)) local stats_pad=$((inner - ${#stats_content} - 1))
local stats_spaces="" local stats_spaces=""
for ((i=0; i<stats_pad; i++)); do stats_spaces+=" "; done for ((i=0; i<stats_pad; i++)); do stats_spaces+=" "; done
echo "${_M_GREY}${_M_RESET} ${_M_DIM}${s1} ${_M_DIM}${s2} ${_M_DIM}${s3} ${_M_DIM}${s4}${stats_spaces}${_M_GREY}${_M_RESET}" echo "${_M_GREY}${_M_RESET} ${_M_DIM}${s1} ${_M_DIM}${s2} ${_M_DIM}${s3} ${_M_DIM}${s4}${stats_spaces}${_M_GREY}${_M_RESET}"
# Bottom border # Bottom border
echo "${_M_GREY}${hline}${_M_RESET}" echo "${_M_GREY}${hline}${_M_RESET}"
echo "" echo ""
} }