From 860e8104e46db4cf454d30d31f99c026e4ec61a9 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Mon, 20 Jan 2025 13:40:15 +0200 Subject: custom tmux session script --- .scripts/stm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 .scripts/stm (limited to '.scripts/stm') diff --git a/.scripts/stm b/.scripts/stm new file mode 100755 index 0000000..991e3d8 --- /dev/null +++ b/.scripts/stm @@ -0,0 +1,23 @@ +#!/bin/sh + +tmux new -s main -d +tmux rename-window -t main term + +tmux new-window -t main -n dwl +tmux send-keys -t main "vim ~/.sources/dwl/config.def.h" C-m +tmux split-window -h -t main +tmux send-keys -t main "cd ~/.sources/dwl/" C-m + +tmux new-window -t main -n dotfiles +tmux send-keys -t main "cd ~/.dotfiles" C-m + +tmux new-window -t main -n htop +tmux send-keys -t main "htop" C-m + +tmux new-window -t main -n notes +tmux send-keys -t main "vim" C-m +tmux send-keys -t main "\ww" C-m + +tmux select-window -t main:0 + +tmux attach -t main -- cgit v1.2.3