summaryrefslogtreecommitdiff
path: root/shs
diff options
context:
space:
mode:
Diffstat (limited to 'shs')
-rwxr-xr-xshs/writeinfotty21
1 files changed, 12 insertions, 9 deletions
diff --git a/shs/writeinfotty b/shs/writeinfotty
index 8e03a8b..888ba23 100755
--- a/shs/writeinfotty
+++ b/shs/writeinfotty
@@ -2,13 +2,16 @@
OUT="/dev/tty1"
QUOTES="/usr/local/share/abrquotes/quotes.txt"
TAGLINE="canonical"
+BUF=""
-printf "\033[2J\n" > $OUT
-figlet -w 200 $(shuf -n 1 $QUOTES) > $OUT
-figlet -w 200 "$HOSTNAME % $TAGLINE" > $OUT
-printf "\n" > $OUT
-neofetch > $OUT
-date > $OUT
-printf "\n" > $OUT
-mpc stats > $OUT
-printf "\nKai Stevenson 2023" > $OUT
+BUF="$BUF \n$(figlet -w 200 $(shuf -n 1 $QUOTES))"
+BUF="$BUF \n$(figlet -w 200 "$HOSTNAME % $TAGLINE")"
+BUF="$BUF\n"
+BUF="$BUF $(neofetch)"
+BUF="$BUF $(date)"
+BUF="$BUF\n"
+BUF="$BUF $(mpc stats)"
+BUF="$BUF \nKai Stevenson 2023"
+
+printf "\033[2J" > $OUT
+printf "$BUF" > $OUT