summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-01-20 13:40:15 +0200
committerDrNuget <drnuget@outlook.com>2025-01-20 13:40:15 +0200
commit860e8104e46db4cf454d30d31f99c026e4ec61a9 (patch)
tree35518234a100e3fb82e88c28ff5f132876c1f3bc
parent1347146aac2b7f94f0f70847dc9d2d668afcfe9d (diff)
custom tmux session script
-rwxr-xr-x.scripts/stm23
1 files changed, 23 insertions, 0 deletions
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