summaryrefslogtreecommitdiff
path: root/writeinfotty
blob: 92fcd817c28eefa35d64a141dff85f595f94bf9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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\n"
BUF="$BUF$(neofetch)"
BUF="$BUF\n"
BUF="$BUF$(mpc stats)"
BUF="$BUF\nKai Stevenson 2024"
printf "\033[2J" > $OUT #clear the terminal
dd if=/dev/zero of=/dev/fb0 #clear the framebuffer
printf "$BUF" > $OUT