mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-09-15 23:46:12 +00:00
Updated configuration to support color
This commit is contained in:
+10
-10
@@ -1,21 +1,21 @@
|
||||
source fetch_script_functions.sh
|
||||
|
||||
echo "Distribution: ${DISTRO_LONG_NAME} ($(uname -m))"
|
||||
echo "Hostname: $(cat /etc/hostname)"
|
||||
echo "Kernel: $(uname -s) $(uname -r)"
|
||||
echo "Packages: $(get_packages)"
|
||||
echo "Shell: $(get_shell)"
|
||||
echo "CPU: $(get_cpu_name) ($(nproc) threads)"
|
||||
echo -e "${C3}Distribution: ${C4}${DISTRO_LONG_NAME} ($(uname -m))"
|
||||
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}$(get_shell)"
|
||||
echo -e "${C3}CPU: ${C4}$(get_cpu_name) ($(nproc) threads)"
|
||||
if command_exists lshw; then
|
||||
echo "GPU: $(lshw -class display 2> /dev/null | grep 'product' | cut -d":" -f2 | xargs)"
|
||||
echo -e "${C3}GPU: ${C4}$(lshw -class display 2> /dev/null | grep 'product' | cut -d":" -f2 | xargs)"
|
||||
fi
|
||||
echo "Memory: $(get_used_mem) MiB / $(get_total_mem) MiB"
|
||||
echo -e "${C3}Memory: ${C4}$(get_used_mem) MiB / $(get_total_mem) MiB"
|
||||
if xhost >& /dev/null ; then
|
||||
if get_de_wm &> /dev/null; then
|
||||
echo "DE/WM: $(get_de_wm)"
|
||||
echo -e "${C3}DE/WM: ${C4}$(get_de_wm)"
|
||||
fi
|
||||
if command_exists xdpyinfo ; then
|
||||
echo "Screen Resolution: $(get_screen_resolution)"
|
||||
echo -e "${C3}Screen Resolution: ${C4}$(get_screen_resolution)"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user