diff --git a/config/tmux/sessions/aftershoot b/config/tmux/sessions/aftershoot new file mode 100755 index 00000000..118e126d --- /dev/null +++ b/config/tmux/sessions/aftershoot @@ -0,0 +1,9 @@ +tmux new-session -d -s 'aftershoot' -n 'neovim' -c ~/Projects/aftershoot/rust-backend +tmux new-window -t aftershoot -n shell -c ~/Projects/aftershoot/rust-backend +tmux new-window -t aftershoot -c ~/Projects/aftershoot/rust-backend +tmux new-window -t aftershoot -c ~/Projects/aftershoot/rust-backend +tmux new-window -t aftershoot -c ~/Projects/aftershoot/desktop-app +tmux new-window -t aftershoot -c ~/Projects/aftershoot/desktop-app +# tmux new-window -t aftershoot -c ~/Projects/aftershoot/python-backend +# tmux new-window -t aftershoot -c ~/Projects/aftershoot/python-backend +tmux select-window -t aftershoot:0 diff --git a/config/tmux/sessions/default b/config/tmux/sessions/default index 2b48bb59..1def2131 100755 --- a/config/tmux/sessions/default +++ b/config/tmux/sessions/default @@ -1,6 +1,5 @@ tmux new-session -d -s 'default' -n 'neovim' -tmux new-window -t default -n 'shell' -#tmux split-window -t default:1.0 -h*/ -#tmux split-window -t default:1.1 */ -#tmux resize-pane -t default:1.2 -x 60 -y 20*/ +tmux new-window -t default -n 'shell' +# tmux new-window -t default -n 'IRC' +# tmux send-keys -t default:IRC "irssi" Enter tmux select-window -t default:0 diff --git a/config/tmux/sessions/go b/config/tmux/sessions/go new file mode 100644 index 00000000..a1e1af21 --- /dev/null +++ b/config/tmux/sessions/go @@ -0,0 +1,3 @@ +tmux new-session -d -s 'go' -n 'neovim' -c ~/go +tmux new-window -t go -n shell -c ~/go +tmux select-window -t go:0 diff --git a/config/tmux/sessions/hexwords b/config/tmux/sessions/hexwords new file mode 100755 index 00000000..1f977710 --- /dev/null +++ b/config/tmux/sessions/hexwords @@ -0,0 +1,5 @@ +tmux new-session -d -s 'hexwords' -n 'neovim' -c ~/Projects/hexwords +tmux new-window -t hexwords -n shell -c ~/Projects/hexwords +tmux new-window -t hexwords -n npm -c ~/Projects/hexwords/docs +tmux send-keys -t hexwords:npm "yarn start" Enter +tmux select-window -t hexwords:0 diff --git a/config/tmux/sessions/hxrd b/config/tmux/sessions/hxrd new file mode 100755 index 00000000..f426bba7 --- /dev/null +++ b/config/tmux/sessions/hxrd @@ -0,0 +1,3 @@ +tmux new-session -d -s 'hxrd' -n 'neovim' -c ~/Projects/rust/hxrd +tmux new-window -t hxrd -n shell -c ~/Projects/rust/hxrd +tmux select-window -t hxrd:0 diff --git a/config/tmux/sessions/jekyll b/config/tmux/sessions/jekyll new file mode 100644 index 00000000..57675a5f --- /dev/null +++ b/config/tmux/sessions/jekyll @@ -0,0 +1,3 @@ +tmux new-session -d -s 'jekyll' -n 'neovim' -c ~/Projects/uttarayan21.github.io +tmux new-window -t jekyll -n shell -c ~/Projects/uttarayan21.github.io +tmux select-window -t jekyll:0 diff --git a/config/tmux/sessions/sandsim b/config/tmux/sessions/sandsim new file mode 100755 index 00000000..efa11126 --- /dev/null +++ b/config/tmux/sessions/sandsim @@ -0,0 +1,3 @@ +tmux new-session -d -s 'sandsim' -n 'neovim' -c ~/Projects/sandsim +tmux new-window -t sandsim -n shell -c ~/Projects/sandsim +tmux select-window -t sandsim:0 diff --git a/config/tmux/sessions/solana b/config/tmux/sessions/solana new file mode 100755 index 00000000..93333c5d --- /dev/null +++ b/config/tmux/sessions/solana @@ -0,0 +1,3 @@ +tmux new-session -d -s 'solana' -n 'neovim' -c ~/Projects/solana +tmux new-window -t solana -n shell -c ~/Projects/solana +tmux select-window -t solana:0 diff --git a/config/tmux/sessions/wasm b/config/tmux/sessions/wasm new file mode 100755 index 00000000..c930769e --- /dev/null +++ b/config/tmux/sessions/wasm @@ -0,0 +1,3 @@ +tmux new-session -d -s 'wasm' -n 'neovim' -c ~/Projects/wasm +tmux new-window -t wasm -n shell -c ~/Projects/wasm +tmux select-window -t wasm:0 diff --git a/config/tmux/start-tmux b/config/tmux/start-tmux index cfa6e1d1..ed7cce6b 100755 --- a/config/tmux/start-tmux +++ b/config/tmux/start-tmux @@ -1,7 +1,7 @@ #!/bin/sh live_sessions=$(tmux list-sessions 2>/dev/null) -all_sessions=$(find ~/.config/tmux/sessions -type f -executable -printf '%f\n') +all_sessions=$(find ~/.config/tmux/sessions -type f -executable -printf '%f\n'| sort) TMUX_SESSIONS="$HOME/.config/tmux/sessions" # for some reason ~/.config/tmux/session doesn't work if made with quotes # TMUX_SESSIONS=$XDG_CONFIG_HOME/tmux/sessions diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index afd126b2..2d0fff34 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -1,8 +1,8 @@ # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'uttarayan21/tmux-wombat' -set -g @plugin 'uttarayan21/tmux-notmuch' set -g @plugin 'tmux-plugins/tmux-battery' +set -g @plugin 'wfxr/tmux-fzf-url' # set -g @dracula-show-powerline true @@ -16,7 +16,7 @@ set -g @plugin 'tmux-plugins/tmux-battery' # load plugin manager run -b '~/.config/tmux/plugins/tpm/tpm' -set -g default-terminal 'tmux-256color' +set -g default-terminal 'xterm-256color' set -ga terminal-overrides ',*256col*:Tc' set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'