added startup script for default tmux session

This commit is contained in:
quak
2024-10-20 23:59:42 +02:00
parent 535de45b7b
commit 02d094968b
3 changed files with 16 additions and 0 deletions

14
misc/scripts/dmux Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
SESSION='quak'
# dont forget the '-d' option, otherwise the rest of
# the commands will get executed after the session is closed
tmux new-session -d -s "$SESSION" -n "temp"
tmux new-window -t "$SESSION" -n "dotfiles"
tmux send-keys -t "$SESSION" "cd ~/dotfiles" C-m "clear" C-m
tmux new-window -t "$SESSION" -n "collection"
tmux send-keys -t "$SESSION" "cd ~/collection" C-m "clear" C-m
tmux new-window -t "$SESSION" -n "stuff"
tmux send-keys -t "$SESSION" "cd ~" C-m "clear" C-m
tmux kill-window -t "temp"
tmux attach -t "$SESSION"