summaryrefslogtreecommitdiff
path: root/writeinfotty
diff options
context:
space:
mode:
Diffstat (limited to 'writeinfotty')
-rwxr-xr-xwriteinfotty16
1 files changed, 16 insertions, 0 deletions
diff --git a/writeinfotty b/writeinfotty
new file mode 100755
index 0000000..66de080
--- /dev/null
+++ b/writeinfotty
@@ -0,0 +1,16 @@
+#!/bin/sh
+OUT="/dev/tty1"
+QUOTES="/usr/local/share/abrquotes/quotes.txt"
+TAGLINE="canonical"
+
+BUF="$BUF \n$(figlet -w 200 $(shuf -n 1 $QUOTES))"
+BUF="$BUF \n$(figlet -w 200 "$HOSTNAME % $TAGLINE.")"
+BUF="$BUF \n$(figlet -w 200 $(date +"%a. %I:%M."))"
+BUF="$BUF\n"
+BUF="$BUF $(neofetch)"
+BUF="$BUF\n"
+BUF="$BUF $(mpc stats)"
+BUF="$BUF\nKai Stevenson 2023"
+
+printf "\033[2J" > $OUT
+printf "$BUF" > $OUT