dots/.bin/tmux-workspace

19 lines
550 B
Plaintext
Raw Normal View History

2021-12-31 16:19:17 +01:00
#!/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 \; \
2023-05-01 15:34:27 +02:00
new-window -n zk \; \
send-keys -t 0 "nvim $ZK_PATH/index.md" C-m \; \
2021-12-31 16:19:17 +01:00
new-window -n music \; \
send-keys -t 0 "ncspot" C-m \; \
new-window -n term \; \
new-window -n make \; \
split-window -h \; \
2023-05-01 15:34:27 +02:00
split-window -h \; \
send-keys -t 0 'cd "$ZK_PATH" && ./entr' C-m \; \
send-keys -t 1 'cd "$ZK_PATH" && live-server . --watch=*.html' C-m \; \
2021-12-31 16:19:17 +01:00
select-window -t 2 \;