Compare commits

..

No commits in common. "7e0460cb6c1c9d6e13e4b04bac84f6eab769705b" and "09cfd7d7c1063578a27adceb9220bd6a9496e5ec" have entirely different histories.

2 changed files with 1 additions and 15 deletions

View File

@ -12,20 +12,6 @@ Just a little script and some 256x images for some terminal shine UwU.
Just place this folder somewhere, and add the path of the motd.sh to your .bashrc. Just place this folder somewhere, and add the path of the motd.sh to your .bashrc.
```
git clone https://git.nussnougate.net/Lexeloid/.motd.git
```
### lolcat
> For faster lolcat we use a C implementation from [https://github.com/jaseg/lolcat](jaseg).
```
git submodule init
git submodule update
```
## Limitations ## Limitations
At the moment, it only works in the kitty terminal. At the moment, it only works in the kitty terminal.

View File

@ -11,7 +11,6 @@ tput_cols=$(/usr/bin/tput cols) # terminal columns
MINTERMWIDTH=200 # minimal width of term, to display motd MINTERMWIDTH=200 # minimal width of term, to display motd
UNAMECOLOR="\033[1;38;5;93m" UNAMECOLOR="\033[1;38;5;93m"
UPTIMECOLOR="\033[1;38;5;99m" UPTIMECOLOR="\033[1;38;5;99m"
lx="$MOTDPATH/lolcat/lolcat"
WAIFUS=$(($(ls $MOTDPATH/waifus/*.256.png | wc -w) - 1)) # count of waifus WAIFUS=$(($(ls $MOTDPATH/waifus/*.256.png | wc -w) - 1)) # count of waifus
@ -19,6 +18,7 @@ function output() {
val=0 val=0
if [ $1 == "true" ]; then val=$(($val + 1)); fi if [ $1 == "true" ]; then val=$(($val + 1)); fi
if [ $2 == "true" ]; then val=$(($val + 2)); fi if [ $2 == "true" ]; then val=$(($val + 2)); fi
if [ -f "/usr/games/lolcat" ]; then lx="/usr/games/lolcat"; else lx="/usr/bin/lolcat"; fi
case "$val" in case "$val" in
0) 0)
/bin/cat $MOTDPATH/motd /bin/cat $MOTDPATH/motd