This commit is contained in:
2025-05-31 23:00:23 -04:00
parent 9baeb16a9c
commit de3d679610
7 changed files with 157 additions and 83 deletions

View File

@@ -1,50 +1,34 @@
set -s escape-time 0
set -g escape-time 0
set-option -sa terminal-features ',xterm-256color:RGB'
set-option -g allow-passthrough on
unbind C-b
set-option -g prefix C-SPACE
bind-key C-SPACE send-prefix
bind r source-file ~/.config/tmux/tmux.conf
set -g base-index 1
set-option -g prefix C-s
bind-key C-s send-prefix
bind r source-file ~/.tmux.conf
# set-option remain-on-exit on
set -g renumber-windows on # renumber all windows when any window is closed
set -g escape-time 0 # zero-out escape time delay
set-window-option -g mode-keys vi
# style
set -g status-position top
set -g status-justify absolute-centre
set -g status-style 'fg=color7 bg=default'
set -g status-right ''
# set -g status-right ' #(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD)'
# set -g status-right ''
set -g status-left '#S'
set -g status-left-style 'fg=color8'
set -g status-right-length 0
set -g status-left-length 100
setw -g window-status-current-style 'fg=colour1 bg=default bold'
setw -g window-status-current-format '#I:#W '
setw -g window-status-style 'fg=color8'
# vim-like pane switching
bind -r ^ last-window
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
bind -r ^ last-window
# Scripts that are baked into tmux
bind G new-window -n 'lazygit' lazygit
bind-key f run-shell "tmux neww ~/.config/scripts/tmux-sessionizer.sh"
bind-key F run-shell "tmux display-popup -E ~/.config/scripts/clone.sh"
bind-key O run-shell "tmux neww ~/.config/scripts/op.sh"
bind-key o run-shell "tmux neww ~/.config/scripts/oa.sh"
bind-key g run-shell "~/.config/scripts/open_github.sh"
bind-key -r N run-shell "~/.config/scripts/tmux-sessionizer.sh ~/documents/notes"
bind-key -r P run-shell "~/.config/scripts/tmux-sessionizer.sh ~/documents/projects"
bind-key -r D run-shell "~/.config/scripts/tmux-sessionizer.sh ~/.config"
bind-key -r H run-shell "~/.config/scripts/tmux-sessionizer.sh ~"
bind-key -r K run-shell "~/.config/scripts/tmux-sessionizer.sh ~/qmk_firmware/keyboards/ferris/keymaps/sylvanfranklinferrissweep"
bind-key -r J run-shell "~/.config/scripts/tmux-sessionizer.sh ~/Journal"
bind-key b set-option status
set -g base-index 1
set -g renumber-windows on
set-window-option -g mode-keys vi
set -g status-position top
set -g status-justify centre
set -g status-style fg=colour8,bg=#000000
set -g status-left-style fg=colour8,bg=#000000
set -g status-right-style fg=colour8,bg=#000000
set -g status-left '#(echo "#{pane_current_path}" | sed "s|^/home/||")'
set -g status-right '%H:%M'
setw -g window-status-style fg=colour8,bg=#000000
setw -g window-status-format '#I:#W '
setw -g window-status-current-style fg=colour1,bg=#000000,bold
set -g status-right '%I:%M %p'