Some changes

This commit is contained in:
Béla Richartz 2021-07-29 22:08:09 +02:00
parent ccfd935533
commit 2c5ef3bfe7

10
motd.sh
View File

@ -1,10 +1,10 @@
# Fancy waifu motd
MOTDPATH="/usr/share/motd" # path to motd folder
MOTDPATH="/home/belar/.motd" # path to motd folder
CACHEFILE="/tmp/waifu.cache" # to cache waifu state
RESOLUTION=256 # resolution of waifu
CENTER=true # center motd?
LOLCAT=false # use lolcat?
LOLCAT=false # use lolcat? (start delay)
UNAMEARG="-sr" # uname arguments
UPTIMEARG="--pretty" # uptime arguments
tput_cols=$(/usr/bin/tput cols) # terminal columns
@ -45,8 +45,8 @@ function output() {
}
if [ $tput_cols -gt $MINTERMWIDTH ]
then
# if [ $tput_cols -gt $MINTERMWIDTH ]
# then
if [ $TERM == "xterm-kitty" ]
then
if [ $((0 + RANDOM % 2)) -eq 0 ]
@ -72,6 +72,6 @@ then
fi
fi
output $LOLCAT $CENTER
fi
# fi