diff --git a/motd/banner.sh b/motd/banner.sh new file mode 100755 index 0000000..a0fe550 --- /dev/null +++ b/motd/banner.sh @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +echo -e "\033[1;31m$(hostname | figlet -f slant)\033[0m" +echo "$(whoami)@$(hostname)" +echo '' +fortune-rs + diff --git a/motd/config.toml b/motd/config.toml new file mode 100644 index 0000000..6c0cb38 --- /dev/null +++ b/motd/config.toml @@ -0,0 +1,23 @@ +[global] +progress_full_character = "=" +progress_empty_character = "=" +progress_prefix = "[" +progress_suffix = "]" +time_format = "%Y-%m-%d %H:%M" + +[banner] +color = "light_white" +#color = "red" +# command = 'figlet -f slant "$(whoami)@$(hostname)"' +command = "~/.config/rust-motd/banner.sh" + +[filesystems] +root = "/" +#secondary = "/mount/f" + +[uptime] +prefix = "Uptime:" + +#[weather] +#url = "https://wttr.in/Cary,North+Carolina?0" +