From cd40a655d1c697443e538ed058d698bdfa261e75 Mon Sep 17 00:00:00 2001 From: sevi-kun Date: Sat, 24 Jul 2021 12:01:00 +0200 Subject: [PATCH] changed cat path --- motd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/motd.sh b/motd.sh index 979af5c..5abe642 100755 --- a/motd.sh +++ b/motd.sh @@ -4,7 +4,7 @@ MOTDPATH="/usr/share/motd" # path to motd folder CACHEFILE="$HOME/.cache/waifu" # to cache waifu state RESOLUTION=256 # resolution of waifu CENTER=true # center motd? -LOLCAT=true # use lolcat? +LOLCAT=false # use lolcat? UNAMEARG="-sr" # uname arguments UPTIMEARG="--pretty" # uptime arguments tput_cols=$(/usr/bin/tput cols) # terminal columns @@ -37,7 +37,7 @@ output() { ;; 3) - /usr/bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx + /bin/cat $MOTDPATH/motd | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx uname $UNAMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx uptime $UPTIMEARG | awk '{ z = '$tput_cols' - length; y = int(z / 2); x = z - y; printf "%*s%s%*s\n", x, "", $0, y, ""; }' | $lx ;;