diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2023-03-10 00:43:41 -0800 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2023-03-10 00:43:41 -0800 |
| commit | 60ca4a44524d61689a559505d7132cb4758f6714 (patch) | |
| tree | 533d16791e36b34d3cc329794fbdcde16135139f | |
| parent | 353aa95310d84e6eb8ad0a41495cae0de00af08b (diff) | |
changed stuff. writes all at once now
| -rwxr-xr-x | shs/writeinfotty | 21 |
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 |
