dotfiles/.tmux.conf##os.Linux

51 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-01-25 15:53:20 -05:00
# plugins
set -g @plugin 'alexghergh/nvim-tmux-navigation'
run '~/.tmux/plugins/tpm/tpm'
2016-12-15 00:30:09 -05:00
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# Initialize sesions
bind W source-file ~/.tmux/work
2016-12-15 00:30:09 -05:00
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# spliting windoww
unbind %
unbind '"'
2024-01-25 15:53:20 -05:00
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
2016-12-15 00:30:09 -05:00
2017-11-18 01:00:35 -05:00
# sync panes
unbind b
bind b setw synchronize-panes
2017-11-18 01:00:35 -05:00
2024-01-22 14:41:41 -05:00
# reset working dir for session
unbind h
bind h attach-session -t . -c "#{pane_current_path}"
2016-12-15 00:30:09 -05:00
# status bar
set -g status-right '♥#(acpi | cut -d ',' -f 2) | %H:%m %d-%b-%y '
2017-04-24 12:11:28 -04:00
2024-01-25 15:53:20 -05:00
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# navigation
bind-key 'j' select-pane -D
bind-key 'k' select-pane -U
bind-key 'l' select-pane -R
bind-key 'h' select-pane -L
bind -n S-Left previous-window
bind -n S-Right next-window