From 9ee861c0d37203eab61797546bad68eefff141ab Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Thu, 9 Mar 2023 23:49:55 -0800 Subject: changed structure slightly, added new script --- sh/tmuxsplitscreen | 20 -------------------- shs/quotes.txt | 4 ++++ shs/tmuxsplitscreen | 20 ++++++++++++++++++++ shs/writeinfotty | 12 ++++++++++++ 4 files changed, 36 insertions(+), 20 deletions(-) delete mode 100755 sh/tmuxsplitscreen create mode 100644 shs/quotes.txt create mode 100755 shs/tmuxsplitscreen create mode 100755 shs/writeinfotty diff --git a/sh/tmuxsplitscreen b/sh/tmuxsplitscreen deleted file mode 100755 index 9f81bd3..0000000 --- a/sh/tmuxsplitscreen +++ /dev/null @@ -1,20 +0,0 @@ -tmux new-session -d -s userone-internal -tmux new-session -d -s usertwo-internal - -tmux new-session -d -s userone -sleep 0.05 -tmux send-keys -t userone "TMUX=''" C-m -tmux send-keys -t userone "tmux attach -t usertwo-internal" C-m -tmux split-pane -t userone -h -sleep 0.05 -tmux send-keys -t userone "TMUX=''" C-m -tmux send-keys -t userone "tmux attach -t userone-internal" C-m - -tmux new-session -d -s usertwo -sleep 0.05 -tmux send-keys -t usertwo "TMUX=''" C-m -tmux send-keys -t usertwo "tmux attach -t userone-internal" C-m -tmux split-pane -t usertwo -h -sleep 0.05 -tmux send-keys -t usertwo "TMUX=''" C-m -tmux send-keys -t usertwo "tmux attach -t usertwo-internal" C-m diff --git a/shs/quotes.txt b/shs/quotes.txt new file mode 100644 index 0000000..ccb8a94 --- /dev/null +++ b/shs/quotes.txt @@ -0,0 +1,4 @@ +In the lighted inn. +Dying or dead. +There's someone listening in. +So much for small talk. diff --git a/shs/tmuxsplitscreen b/shs/tmuxsplitscreen new file mode 100755 index 0000000..9f81bd3 --- /dev/null +++ b/shs/tmuxsplitscreen @@ -0,0 +1,20 @@ +tmux new-session -d -s userone-internal +tmux new-session -d -s usertwo-internal + +tmux new-session -d -s userone +sleep 0.05 +tmux send-keys -t userone "TMUX=''" C-m +tmux send-keys -t userone "tmux attach -t usertwo-internal" C-m +tmux split-pane -t userone -h +sleep 0.05 +tmux send-keys -t userone "TMUX=''" C-m +tmux send-keys -t userone "tmux attach -t userone-internal" C-m + +tmux new-session -d -s usertwo +sleep 0.05 +tmux send-keys -t usertwo "TMUX=''" C-m +tmux send-keys -t usertwo "tmux attach -t userone-internal" C-m +tmux split-pane -t usertwo -h +sleep 0.05 +tmux send-keys -t usertwo "TMUX=''" C-m +tmux send-keys -t usertwo "tmux attach -t usertwo-internal" C-m diff --git a/shs/writeinfotty b/shs/writeinfotty new file mode 100755 index 0000000..6311840 --- /dev/null +++ b/shs/writeinfotty @@ -0,0 +1,12 @@ +#!/bin/sh +OUT="/dev/tty1" +QUOTES="/usr/local/share/abrquotes/quotes.txt" + +clear > $OUT +figlet -w 200 $(shuf -n 1 $QUOTES) > $OUT +figlet -w 200 "$HOSTNAME % canonical" > $OUT +printf "\n" > $OUT +neofetch > $OUT +date > $OUT +mpc stats > $OUT +printf "\nKai Stevenson 2023" > $OUT -- cgit v1.3.1