diff --git a/.chezmoiignore b/.chezmoiignore index b43bf86..a8091fe 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1 +1,5 @@ README.md + +{{- if ne .chezmoi.hostname "arch" }} +dot_config/tmux/bootstrap +{{- end }} diff --git a/dot_config/tmux/bootstraps/default.sh b/dot_config/tmux/bootstraps/default.sh new file mode 100644 index 0000000..362df61 --- /dev/null +++ b/dot_config/tmux/bootstraps/default.sh @@ -0,0 +1 @@ +tmux neww -n main diff --git a/dot_config/tmux/bootstraps/executable_blog.sh b/dot_config/tmux/bootstraps/executable_blog.sh new file mode 100644 index 0000000..0219cd0 --- /dev/null +++ b/dot_config/tmux/bootstraps/executable_blog.sh @@ -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 diff --git a/dot_config/tmux/bootstraps/executable_tessoku.sh b/dot_config/tmux/bootstraps/executable_tessoku.sh new file mode 100644 index 0000000..1cd3eb9 --- /dev/null +++ b/dot_config/tmux/bootstraps/executable_tessoku.sh @@ -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 diff --git a/dot_config/tmux/bootstraps/executable_wiki.sh b/dot_config/tmux/bootstraps/executable_wiki.sh new file mode 100644 index 0000000..9bbe77a --- /dev/null +++ b/dot_config/tmux/bootstraps/executable_wiki.sh @@ -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 diff --git a/dot_config/tmux/bootstraps/music.sh b/dot_config/tmux/bootstraps/music.sh new file mode 100644 index 0000000..c5d12fb --- /dev/null +++ b/dot_config/tmux/bootstraps/music.sh @@ -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 diff --git a/dot_config/tmux/bootstraps/tmp.sh b/dot_config/tmux/bootstraps/tmp.sh new file mode 100644 index 0000000..a6734f7 --- /dev/null +++ b/dot_config/tmux/bootstraps/tmp.sh @@ -0,0 +1,3 @@ +tmux neww -n tmp +tmux send-keys -t 0 'cd ~' C-m +tmux set-options diff --git a/dot_config/tmux/bootstraps/util.sh b/dot_config/tmux/bootstraps/util.sh new file mode 100644 index 0000000..19a0aca --- /dev/null +++ b/dot_config/tmux/bootstraps/util.sh @@ -0,0 +1,4 @@ +tmux neww -n util + +tmux send-keys -t 0 'cd ~' C-m +tmux send-keys -t 0 'shellcaster' C-m