added rust-motd configuration files

This commit is contained in:
Valerie Wolfe 2023-07-02 14:47:09 -04:00
parent eac2066d3e
commit 6cad44fdd0
2 changed files with 30 additions and 0 deletions

7
motd/banner.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/bash
echo -e "\033[1;31m$(hostname | figlet -f slant)\033[0m"
echo "$(whoami)@$(hostname)"
echo ''
fortune-rs

23
motd/config.toml Normal file
View file

@ -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"