From bc6a8bf6b3b23be063a61aaadf23505ad7966058 Mon Sep 17 00:00:00 2001 From: sevi-kun Date: Fri, 16 Jul 2021 00:38:12 +0200 Subject: [PATCH] Updated README --- README.md | 20 ++++++++++++++++++++ motd.sh | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b47eb12..161cd77 100644 --- a/README.md +++ b/README.md @@ -1 +1,21 @@ # motd + +Just a little script and some 256x images for some terminal shine UwU. + +## Dependencies + +* kitty +* imagemagick +* lolcat + +## Installation + +Just place this folder somewhere, and add the path of the motd.sh to your .bashrc. + +## Limitations + +At the moment, it only works in the kitty terminal. + +## Troubleshooting + +If you want to remove the login message on ssh, you can do so by removing the content of /etc/motd and /etc/update-motd.d/. diff --git a/motd.sh b/motd.sh index d2e1ff6..91410a0 100755 --- a/motd.sh +++ b/motd.sh @@ -2,8 +2,9 @@ WAIFUS=52 CACHEFILE="$HOME/.cache/waifu" +MINTERMWIDTH=200 -if [ $(tput cols) -gt 200 ] +if [ $(tput cols) -gt $MINTERMWIDTH ] then if [ $TERM == "xterm-kitty" ] then