guix-config

Guix system and home config for XIII (librebooted T480)
git clone https://g1rls.strangled.net/guix-config.git
Log | Files | Refs | README

commit 15b312e2a02e401c1b3d4bbba8aae1150774aa49
parent a6619c865954506c2d594906859f7da20cda3f8e
Author: freya <freya@xiii.invalid>
Date:   Sat,  5 Dec 2026 15:29:49 +0400

xiii-hud: keep process names with spaces intact

Diffstat:
Mdots/.local/bin/xiii-hud | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dots/.local/bin/xiii-hud b/dots/.local/bin/xiii-hud @@ -137,8 +137,8 @@ while :; do }') feed_last=$(awk '/nodes published|unchanged|only [0-9]+ nodes/{t=substr($1,6)" "substr($2,1,5)} END{if(t) printf "%s", t; else print "none"}' /home/freya/.local/share/free-feed/log 2>/dev/null || echo "none") - procs=$(ps -eo comm,%cpu,%mem --sort=-%mem --no-headers | head -n 4 | - awk '{c=$1; sub(/^\./,"",c); sub(/-real$/,"",c); printf "%-13s %4s%% c %4s%% m\n", substr(c,1,13), $2, $3}') + procs=$(ps -eo %cpu,%mem,comm --sort=-%mem --no-headers | head -n 4 | + awk '{c=$3; for(i=4;i<=NF;i++) c=c" "$i; sub(/^\./,"",c); sub(/-real$/,"",c); printf "%-13s %4s%% c %4s%% m\n", substr(c,1,13), $1, $2}') p1=$(printf '%s\n' "$procs" | sed -n '1p') p2=$(printf '%s\n' "$procs" | sed -n '2p') p3=$(printf '%s\n' "$procs" | sed -n '3p')