Update dotfiles/.local/motd.sh

This commit is contained in:
Brian Zalewski 2022-10-29 23:36:08 +00:00
parent d030b4e02d
commit db50e8a72d

View file

@ -247,9 +247,14 @@ print_banner() {
fi
fi
banner_distro_space=$(generate_space "$banner_distro_name" 13)
banner_distro_space=$(generate_space "$banner_distro_name" 14)
if [ "$(hostname)" = 'dom0' ]; then
# Qubes dom0
banner_distro_space=$(generate_space "$NAME" 14)
printf " \\033[%sm%s %s\\033[0m%s%s\\n" "$banner_distro_color" "" "$NAME" "$banner_distro_space" "$VERSION"
else
printf " \\033[%sm%s %s\\033[0m%s%s\\n" "$banner_distro_color" "$banner_distro_icon" "$banner_distro_name" "$banner_distro_space" "$banner_distro_version"
fi
printf " \\033[%sm%s Linux\\033[0m %s\\n\\n" "$BANNER_KERNEL_COLOR" "$BANNER_KERNEL_ICON" "$(cut -d ' ' -f 3 < /proc/version)"
printf " \\033[%sm%s Uptime\\033[0m %s\\n" "$BANNER_UPTIME_COLOR" "$BANNER_UPTIME_ICON" "$(uptime -p | cut -d ' ' -f 2-)"
else