Add independent per-machine monitoring

Show separate resource histories for each machine in All Systems, configure the primary tray icon independently with optional per-machine icons, and display network IN/OUT as distinct traces. Migrate legacy monitor and tray selections while preserving saved preferences.
This commit is contained in:
2026-11-26 07:13:02 -06:00
parent 7628161f07
commit 5b2251c8f2
24 changed files with 1092 additions and 249 deletions

View File

@@ -50,11 +50,12 @@ sample() {
dev=${dev//[[:space:]]/}
path=/sys/class/net/$dev
[[ -d $path ]] || continue
speed= state= physical=0
speed= state= index= physical=0
[[ ! -e $path/device ]] || physical=1
[[ ! -r $path/operstate ]] || read -r state < "$path/operstate"
[[ ! -r $path/ifindex ]] || read -r index < "$path/ifindex"
{ [[ ! -r $path/speed ]] || read -r speed < "$path/speed"; } 2>/dev/null
printf 'net\t%s\t%s\t%s\t%s\t%s\n' "$dev" "$physical" "$state" "$speed" "$rest"
printf 'net\t%s\t%s\t%s\t%s\t%s\t%s\n' "$dev" "$physical" "$state" "$speed" "$rest" "$index"
done < /proc/net/dev
for path in /sys/class/drm/card[0-9]*; do
[[ ${path##*/} =~ ^card[0-9]+$ && -r $path/device/vendor ]] || continue