diff --git a/dotfiles/.local/motd.sh b/dotfiles/.local/motd.sh index aee715ca..dea1644a 100644 --- a/dotfiles/.local/motd.sh +++ b/dotfiles/.local/motd.sh @@ -575,11 +575,11 @@ print_updates() { failed_services_count="$(systemctl --type=service | grep 'failed' | wc -l)" systemctl --type=service | grep 'failed' | sed 's/..\([^ ]*\).service.*/\1/' - printf " %s\\033[%sm\\033[0m services are are currently running\\n" "$(generate_space "$running_services_count" 5)" "42" + printf " %s \\033[%sm%s\\033[0m services are are currently running\\n" "$(generate_space "$running_services_count" 5)" "32" "" if [ "$failed_services_count" -eq 1 ]; then - printf "  \\033[41m1\\033[0m service failed to start (%s)\\n" "$(systemctl --type=service | grep 'failed' | sed 's/..\([^ ]*\).service.*/\1/')" + printf " \\033[%sm%s\\033[0m service failed to start (%s)\\n" "$(systemctl --type=service | grep 'failed' | sed 's/..\([^ ]*\).service.*/\1/')" "31" "" elif [ "$failed_services_count" -gt 1 ]; then - printf "  \\033[41m%s\\033[0m services failed to start (see `systemctl --type=service`)\\n" "$(generate_space "$failed_services_count" 5)" + printf " \\033[%sm%s\\033[0m services failed to start (see `systemctl --type=service`)\\n" "$(generate_space "$failed_services_count" 5)" "31" "" fi fi }