Compare commits

...

2 Commits

Author SHA1 Message Date
7e0460cb6c Change lolcat path 2022-05-24 22:52:03 +02:00
afe8a29a24 Updated readme for lolcat 2022-05-24 22:50:50 +02:00
2 changed files with 15 additions and 1 deletions

View File

@ -12,6 +12,20 @@ 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.
```
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
At the moment, it only works in the kitty terminal.

View File

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