topinfo=$(top -b -d 1 0 | sed s/[,:]//g)
meminfo=$(echo "$topinfo" | grep "^Mem")
arcinfo=$(echo "$topinfo" | grep "^ARC")
- xsetroot -name "$meminfo | $arcinfo | $fdm_state $life% $(date "+%Y-%m-%dT%H:%M:%S")"
+ swpinfo=$(echo "$topinfo" | perl -ne 'print $1 if /^Swap \w+ Total (\w+) Used/')
+ xsetroot -name "$swpinfo $meminfo $arcinfo $fdm_state $life% $(date "+%Y-%m-%dT%H:%M:%S")"
sleep 20
done