tmux: add bootstrap scripts for tmuxsh (ignored by all but desktop)

This commit is contained in:
inkch 2024-01-14 20:41:59 +09:00
parent 8f6d9d6b47
commit 6dbcdcccbb
8 changed files with 102 additions and 0 deletions

View File

@ -1 +1,5 @@
README.md
{{- if ne .chezmoi.hostname "arch" }}
dot_config/tmux/bootstrap
{{- end }}

View File

@ -0,0 +1 @@
tmux neww -n main

View File

@ -0,0 +1,16 @@
#!/bin/sh
# Create new window
tmux neww -n blog
# Prepare panes & resize
tmux split-window -h
tmux resize-pane -t 0 -x 50
tmux send-keys -t 0 'cd ~/dev/_blog' C-m
tmux send-keys -t 0 'pkill zola; zola serve --interface 10.0.2.1 --base-url 10.0.2.1 --drafts' C-m
tmux send-keys -t 1 'cd ~/dev/_blog' C-m
tmux send-keys -t 1 'nvim' C-m
tmux select-pane -t 1

View File

@ -0,0 +1,16 @@
#!/bin/sh
# Create new window
tmux neww -n tessoku
# Prepare panes & resize
tmux split-window -h
tmux resize-pane -t 0 -x 120
tmux send-keys -t 0 'cd ~/dev/atcoder' C-m
tmux send-keys -t 0 './oj-wrapper.py' C-m
tmux send-keys -t 1 'cd ~/dev/atcoder/contests/tessoku-book' C-m
tmux send-keys -t 1 'nvim' C-m
tmux select-pane -t 1

View File

@ -0,0 +1,6 @@
#!/bin/sh
# Create new window
tmux neww -n wiki
tmux send-keys -t 0 'cd ~/vc/wiki' C-m
tmux send-keys -t 0 "nvim -c 'Goyo 150 | WikiIndex'" C-m

View File

@ -0,0 +1,52 @@
#!/bin/sh
# # BACKUP
# # Create new window
# neww -n ncmpcpp;
#
# # Prepare panes & resize
# split-window -v;
# select-pane -t 0;
# split-window -h;
# split-window -h;
# resize-pane -t 0 -x 39 -y 17;
# resize-pane -t 1 -x 139 -y 17;
# resize-pane -t 2 -x 139 -y 17;
#
# # Execute commands
# send-keys -t 0 '~/.config/ncmpcpp/cover.sh' C-m;
# send-keys -t 1 'cava -p ~/.config/cava/hdmi.conf' C-m;
# send-keys -t 2 'cava -p ~/.config/cava/g433.conf' C-m;
# send-keys -t 3 'ncmpcpp' C-m;
#
# select-pane -t 3
#
# # Create new window for spotify-tui
# neww -n spt;
# send-keys 'spt' C-m;
# select-window -t ncmpcpp;
##########################################################################
# +---------------------------------+
# | pulsemixer |
# +---------------------------------+
# | |
# | spotify-tui |
# | |
# +---------------------------------+
# Create new window
tmux neww -n music
# Prepare panes & resize
tmux split-window -v
tmux resize-pane -t 0 -y 10
# tmux split-window -h
# send-keys -t 0 'cava -p ~/.config/cava/g433.conf' C-m;
# send-keys -t 0 'cava' C-m;
tmux send-keys -t 0 'pulsemixer' C-m
tmux send-keys -t 1 'pkill spotifyd; spotifyd; spt' C-m
tmux select-pane -t 2

View File

@ -0,0 +1,3 @@
tmux neww -n tmp
tmux send-keys -t 0 'cd ~' C-m
tmux set-options

View File

@ -0,0 +1,4 @@
tmux neww -n util
tmux send-keys -t 0 'cd ~' C-m
tmux send-keys -t 0 'shellcaster' C-m