From e8fc0133f40e7cd71aef9ff940dd71299b8e25c9 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 31 Dec 2021 16:19:17 +0100 Subject: [PATCH] Add tmux 'workspace' setup script --- .bin/tmux-workspace | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 .bin/tmux-workspace diff --git a/.bin/tmux-workspace b/.bin/tmux-workspace new file mode 100755 index 0000000..fa5992f --- /dev/null +++ b/.bin/tmux-workspace @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +session="main" + +tmux attach-session -t $session || tmux new-session -s $session \; \ + rename-window todo \; \ + send-keys -t 0 "task" C-m \; \ + new-window -n wiki \; \ + send-keys -t 0 "vim $HOME/.wiki/index.md" C-m \; \ + new-window -n music \; \ + send-keys -t 0 "ncspot" C-m \; \ + new-window -n term \; \ + new-window -n make \; \ + split-window -h \; \ + send-keys -t 0 'cd "$HOME/.wiki" && ./entr' C-m \; \ + send-keys -t 1 'cd "$HOME/.wiki" && live-server . --watch *.html' C-m \; \ + select-window -t 2 \;