tmux.conf (2473B)
1 set -g prefix C-s 2 3 bind k kill-session 4 bind r command-prompt "rename-session '%%'" 5 6 bind h split-window -h -c "#{pane_current_path}" 7 bind v split-window -v -c "#{pane_current_path}" 8 9 #bind up prev 10 #bind down next 11 12 bind -n C-down next 13 bind -n C-up prev 14 bind -n C-t new-window 15 bind -n C-x kill-pane 16 17 bind l list-sessions 18 19 bind -n C-S-Down swap-window -t +1 \; select-window -t +1 20 bind -n C-S-Up swap-window -t -1 \; select-window -t -1 21 22 bind -n C-tab swap-window -t +1 \; select-window -t +1 23 #bind -n C-Shift-tab swap-window -t -1 \; select-window -t -1 24 25 # bind -n C-S-Up swap-window -u 26 27 28 # this does not detect c-alpha for some reason. 29 # bind -n C-1 select-window -t 1 30 31 # COMMENTED ALL OF THESE OUT BECAUSE TMUX 32 # SESSIONS SHOULD BE STARTED IN THE PROJECT 33 # DIR. 34 35 # Open index.md in the notes directory 36 # bind i send-keys "cd ~/gitRepos/notes" C-m 37 38 # Open ToDoList.md in the toDoList directory 39 # bind d send-keys "vim ~/gitRepos/todolist/ToDoList.md" C-m 40 41 # Open the nvim config directory 42 # bind n send-keys "cd ~/.config/nvim && vim lua/core/keymaps.lua" C-m 43 44 # Open .tmux.conf 45 # bind c send-keys "vim ~/.tmux.conf" C-m 46 47 # bind s send-keys "vim ~/.config/shortcuts.md" C-m 48 49 50 set -g default-terminal "screen-256color" 51 set -as terminal-features ",xterm-256color:RGB" 52 53 set -g base-index 1 54 setw -g pane-base-index 1 55 56 bind t new-window 57 bind x kill-pane 58 59 60 set-option -g status-bg default 61 set-option -g status-fg colour240 62 63 # 64 #set -g status-left-length 85 65 #set -g status-left "working on#[fg=colour135] #S" 66 #set -g window-status-current-format "#[fg=black,bold bg=default]│#[fg=white bg=cyan]#W#[fg=black,bold bg=default]│" 67 #set -g window-status-current-format "#[fg=black,bold bg=default]│#[fg=colour135 bg=black]#W#[fg=black,bold bg=default]│" 68 #set -g status-style bg=default 69 #set -g status-right "#[fg=magenta] #[bg=gray] %b %d %Y %l:%M %p" 70 #set -g status-right '#(gitmux "#{pane_current_path}")' 71 #set -g status-justify centre 72 # 73 # 74 75 set-option -g status-position top 76 set -g status-bg '#000000' # Light pinkish background (similar to Cappuccin's 'macchiato') 77 set -g status-fg '#FFFFFF' # Off-white foreground color (similar to Cappuccin's 'latte') 78 set -g status-left '' # Hide system name on the left side 79 set -g status-right '' # Hide time on the right side 80 81 # without this for some reason the prompt was not setting 82 # as expected for bash... 83 set-option -g default-command "$SHELL --rcfile ~/.bashrc" 84 85 86 bind e run-shell "$HOME/bin/edit-tmux-output.sh"