Redid tmux theme + small tweaks to config file
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
# Settings
|
||||
set -g default-terminal "xterm-256color"
|
||||
set -ag terminal-overrides ",xterm-256color:RGB"
|
||||
#set -g set-titles-string '#T'
|
||||
#set-option -g set-titles on
|
||||
setw -g monitor-activity on
|
||||
setw -g aggressive-resize on
|
||||
setw -g automatic-rename on
|
||||
set -s escape-time 0
|
||||
set-window-option -g xterm-keys on
|
||||
|
||||
#set -g mouse on
|
||||
|
||||
# Change leader
|
||||
unbind C-b
|
||||
set -g prefix C-a
|
||||
|
||||
# Improve navigation between tmux and nvim
|
||||
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'
|
||||
bind -n M-h if-shell "$is_vim" "send-keys M-h" "select-pane -L"
|
||||
bind -n M-j if-shell "$is_vim" "send-keys M-j" "select-pane -D"
|
||||
bind -n M-k if-shell "$is_vim" "send-keys M-k" "select-pane -U"
|
||||
bind -n M-l if-shell "$is_vim" "send-keys M-l" "select-pane -R"
|
||||
|
||||
# Custom keybinds
|
||||
bind '"' split-window -c "#{pane_current_path}"
|
||||
bind % split-window -h -c "#{pane_current_path}"
|
||||
bind -n C-j new-window -c "#{pane_current_path}"
|
||||
@@ -26,22 +26,9 @@ bind -n C-h prev
|
||||
bind -n C-l next
|
||||
bind -n C-M-l swap-window -t +1 \; next
|
||||
bind -n C-M-h swap-window -t -1 \; prev
|
||||
bind X kill-window
|
||||
|
||||
set -g status-style "bg=colour237"
|
||||
set -g message-command-style "fg=colour246"
|
||||
set -g status-justify "left"
|
||||
set -g status-left-length "100"
|
||||
set -g status "on"
|
||||
set -g pane-active-border-style "fg=colour246"
|
||||
set -g status-right-length "100"
|
||||
set -g message-style "fg=colour246,bg=colour239"
|
||||
set -g message-command-style "bg=colour239"
|
||||
set -g pane-border-style "fg=colour239"
|
||||
setw -g window-status-style "fg=colour246,bg=colour237"
|
||||
setw -g window-status-activity-style "fg=colour246,bg=colour237"
|
||||
setw -g window-status-separator ""
|
||||
set -g status-left "#[fg=colour235,bg=colour246] #S #[fg=colour246,bg=colour237,nobold,nounderscore,noitalics]"
|
||||
set -g status-right "#[fg=colour239,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour246,bg=colour239] %Y-%m-%d %H:%M #[fg=colour246,bg=colour239,nobold,nounderscore,noitalics]#[fg=colour235,bg=colour246] #h "
|
||||
setw -g window-status-format "#[fg=colour246,bg=colour237] #I #[fg=colour246,bg=colour237] #W "
|
||||
setw -g window-status-current-format "#[fg=colour237,bg=colour239,nobold,nounderscore,noitalics]#[fg=colour246,bg=colour239] #I #[fg=colour246,bg=colour239] #W #[fg=colour239,bg=colour237,nobold,nounderscore,noitalics]"
|
||||
# Keybind for reloading config
|
||||
bind r source-file $DOTFILES/tmux/dot-tmux.conf \; display-message "Config reloaded..."
|
||||
|
||||
# Load theme
|
||||
source-file "$DOTFILES/tmux/gruvbox.conf"
|
||||
|
||||
Reference in New Issue
Block a user