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