mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-09-15 23:46:12 +00:00
Fixed chroot bugs and reduced executable size
Stormfetch will now only list CPU and memory information if available Added 'ldflag "-w"' to go build which reduces file size Added 'run' goal to Makefile
This commit is contained in:
@@ -5,11 +5,15 @@ echo -e "${C3}Hostname: ${C4}$(cat /etc/hostname)"
|
||||
echo -e "${C3}Kernel: ${C4}$(uname -s) $(uname -r)"
|
||||
echo -e "${C3}Packages: ${C4}$(get_packages)"
|
||||
echo -e "${C3}Shell: ${C4}${USER_SHELL}"
|
||||
echo -e "${C3}CPU: ${C4}${CPU_MODEL} (${CPU_THREADS} threads)"
|
||||
if [ ! -z "$CPU_MODEL" ]; then
|
||||
echo -e "${C3}CPU: ${C4}${CPU_MODEL} (${CPU_THREADS} threads)"
|
||||
fi
|
||||
if [ ! -z "$GPU_MODEL" ]; then
|
||||
echo -e "${C3}GPU: ${C4}${GPU_MODEL}"
|
||||
fi
|
||||
echo -e "${C3}Memory: ${C4}${MEM_USED} MiB / ${MEM_TOTAL} MiB"
|
||||
if [ ! -z "$MEM_TOTAL" ] && [ ! -z "$MEM_USED" ]; then
|
||||
echo -e "${C3}Memory: ${C4}${MEM_USED} MiB / ${MEM_TOTAL} MiB"
|
||||
fi
|
||||
if xhost >& /dev/null ; then
|
||||
if [ ! -z "$DE_WM" ]; then
|
||||
echo -e "${C3}DE/WM: ${C4}${DE_WM}"
|
||||
|
||||
Reference in New Issue
Block a user