Major config changes
Add alacritty config, as it is my main terminal now Change **a lot** of nvim configs Add tmux configuration Update zsh configs Add .gitconfig with custom pager Include tmux-plugin-manager as a submodule
This commit is contained in:
parent
bb8a0eaec7
commit
90ca95ad38
23 changed files with 529 additions and 51 deletions
21
.config/tmux/keybinds.conf
Normal file
21
.config/tmux/keybinds.conf
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Change prefix key to C-a, found in in GNU Screen
|
||||
unbind-key C-b
|
||||
|
||||
set-option -g prefix C-a
|
||||
bind-key C-a send-prefix
|
||||
|
||||
# Sane splits
|
||||
bind u previous-window
|
||||
bind i next-window
|
||||
|
||||
bind n new-window -c "#{pane_current_path}"
|
||||
|
||||
bind k split-window -v
|
||||
bind l split-window -h
|
||||
|
||||
# Rebind command key to ;
|
||||
bind \; command-prompt
|
||||
|
||||
bind-key -n M-C-l send-keys C-l
|
||||
|
||||
# vim: ft=tmux
|
||||
23
.config/tmux/plugins.conf
Normal file
23
.config/tmux/plugins.conf
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
set -g @plugin 'odedlaz/tmux-onedark-theme'
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-battery'
|
||||
|
||||
|
||||
# Battery icons
|
||||
set -g @batt_icon_charge_tier8 ' '
|
||||
set -g @batt_icon_charge_tier7 ' '
|
||||
set -g @batt_icon_charge_tier6 ' '
|
||||
set -g @batt_icon_charge_tier5 ' '
|
||||
set -g @batt_icon_charge_tier4 ' '
|
||||
set -g @batt_icon_charge_tier3 ' '
|
||||
set -g @batt_icon_charge_tier2 ' '
|
||||
set -g @batt_icon_charge_tier1 '! !'
|
||||
|
||||
# Change date and time format
|
||||
set -g @onedark_time_format "%I:%M %p"
|
||||
set -g @onedark_date_format "%D"
|
||||
set -g @onedark_widgets "#{battery_icon_charge} #{battery_percentage}%"
|
||||
|
||||
run '~/.local/share/tmux-plugins/tpm/tpm'
|
||||
|
||||
# vim: ft=tmux
|
||||
41
.config/tmux/tmux.conf
Normal file
41
.config/tmux/tmux.conf
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# Enable mouse
|
||||
setw -g mouse on
|
||||
|
||||
# Enable 256 color mode and TrueColor
|
||||
set -s default-terminal "tmux-256color"
|
||||
set -as terminal-overrides ",xterm*:Tc"
|
||||
|
||||
# Get rid of nvim escape delay
|
||||
set -s escape-time 0
|
||||
|
||||
setw -g mode-keys vi
|
||||
|
||||
|
||||
# enable activity alerts
|
||||
setw -g monitor-activity on
|
||||
set -g visual-activity on
|
||||
|
||||
# Center the window list ? idk what this does
|
||||
# set -g status-justify centre
|
||||
|
||||
# Start with window 1 (instead of 0)
|
||||
set -g base-index 1
|
||||
|
||||
# Start with pane 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
# Reload config on C-r
|
||||
bind C-r source-file ~/.config/tmux/tmux.conf
|
||||
|
||||
setw -g aggressive-resize on
|
||||
|
||||
set -g history-limit 4096
|
||||
|
||||
set -g status-justify left
|
||||
set -g status-bg default
|
||||
set -g status-interval 2
|
||||
|
||||
# Source extra configs
|
||||
source-file ~/.config/tmux/keybinds.conf
|
||||
source-file ~/.config/tmux/plugins.conf
|
||||
# source-file ~/.config/tmux/vim.conf
|
||||
13
.config/tmux/vim.conf
Normal file
13
.config/tmux/vim.conf
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
is_vim="ps -o state= -o comm= -t '#{pane_tty}'| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
||||
|
||||
bind-key -n M-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
|
||||
bind-key -n M-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
|
||||
bind-key -n M-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
|
||||
bind-key -n M-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
||||
|
||||
bind-key -T copy-mode-vi M-h select-pane -L
|
||||
bind-key -T copy-mode-vi M-j select-pane -D
|
||||
bind-key -T copy-mode-vi M-k select-pane -U
|
||||
bind-key -T copy-mode-vi M-l select-pane -R
|
||||
|
||||
# vim: ft=tmux
|
||||
Loading…
Add table
Add a link
Reference in a new issue