135 lines
4.6 KiB
Text
135 lines
4.6 KiB
Text
set -g prefix C-a
|
|
unbind C-b
|
|
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
|
|
# Make vim more responsive
|
|
set -sg escape-time 10
|
|
|
|
bind-key C-o last-window
|
|
# bind-key C-a select-pane -t :.+
|
|
bind-key a send-prefix
|
|
bind r source-file ~/.tmux.conf
|
|
bind -n M-j select-pane -t :.+
|
|
bind -n M-k select-pane -t :.-
|
|
#bind -n M-h select-pane -L
|
|
#bind -n M-l select-pane -R
|
|
bind -n M-n next-window
|
|
bind -n M-p previous-window
|
|
bind-key C-n next-window
|
|
bind-key C-p previous-window
|
|
set -g set-titles off
|
|
set -g mouse on
|
|
set -g default-terminal tmux-256color
|
|
#set-option -g default-shell /bin/fish
|
|
setw -g mode-keys vi
|
|
new -d
|
|
|
|
|
|
# shift-movement keys will resize panes
|
|
bind -r H resize-pane -L 5
|
|
bind -r J resize-pane -D 5
|
|
bind -r K resize-pane -U 5
|
|
bind -r L resize-pane -R 5
|
|
|
|
# better mnemonics for splitting panes!
|
|
#bind | split-window -h
|
|
#bind - split-window -v
|
|
|
|
bind-key h select-pane -L
|
|
bind-key k select-pane -U
|
|
bind-key j select-pane -D
|
|
bind-key l select-pane -R
|
|
|
|
bind-key u break-pane
|
|
#bind-key sdf command-prompt -p "join pane from:" "join-pane -s '%%'"
|
|
bind-key y command-prompt -p "send pane to:" "join-pane -t :'%%' \; select-layout main-vertical"
|
|
bind-key Space rotate-window
|
|
|
|
bind v split-window -h
|
|
bind Enter split-window -h \; select-layout main-vertical
|
|
bind = select-layout even-horizontal
|
|
bind | select-layout main-vertical
|
|
set -g main-pane-width 68%
|
|
bind-key C-t new-window "ttyd -R -d -t fontSize=18 tmux attach -t `tmux display -p '#S'`"
|
|
|
|
# Status Bar
|
|
##set -g status-bg black
|
|
set -g status-interval 5
|
|
##set -g status-left '#[fg=green]#H#[default]'
|
|
##set -g status-right '#[fg=green]#(~/src/tpom/tpom) #[fg=cyan,bold]%Y-%m-%d %H:%M:%S#[default]'
|
|
#set -g status-justify centre # center align window list
|
|
#set -g status-style fg=white,bg=default
|
|
set -g status-position top
|
|
|
|
## default window title colors
|
|
#set-window-option -g window-status-style fg=white,bg=default,dim
|
|
|
|
## active window title colors
|
|
#set -g main-pane-width 68%
|
|
#set-window-option -g window-status-current-style fg=cyan,bg=default,bright
|
|
|
|
#set-window-option -g window-style fg=#999999,bg=terminal
|
|
#set-window-option -g window-active-style fg=terminal,bg=terminal
|
|
|
|
#set -g status-left '#[fg=green][ #h ]['
|
|
#set -g status-left-length 40
|
|
#set -g status-right '#[fg=green]][#(battery) #{pane_width}x#{pane_height} #[bright]#[fg=blue]%Y-%m-%d #[fg=white]%I:%M #[dim]#[fg=green]]'
|
|
#set -g status-right-length 40
|
|
set-window-option -g window-status-activity-style none
|
|
# Notifying if other windows has activities
|
|
set -g monitor-activity on
|
|
set -g visual-activity off
|
|
set -g visual-bell on
|
|
set -g bell-action none
|
|
set -g activity-action none
|
|
|
|
# Highlighting the active window in status bar
|
|
#setw -g window-status-current-style bg=red,bright
|
|
|
|
|
|
set -g @catppuccin_window_status "icon"
|
|
set -g @catppuccin_flavor 'mocha' # or frappe, macchiato, mocha
|
|
|
|
set -g @catppuccin_window_status_style "rounded"
|
|
|
|
|
|
set -g @catppuccin_window_current_text_color "#4780d2"
|
|
set -g @catppuccin_window_current_number_color "#4780d2"
|
|
set -g @catppuccin_window_text_color "#{@thm_surface_1}"
|
|
set -g @catppuccin_window_number_color "#{@thm_surface_1}"
|
|
|
|
set -g @catppuccin_window_text "#W "
|
|
set -g @catppuccin_window_number "#I"
|
|
set -g @catppuccin_window_current_text "#W "
|
|
set -g @catppuccin_window_current_number "#I"
|
|
|
|
set -ogq @catppuccin_window_flags "icon"
|
|
set -ogq @catppuccin_window_flags_icon_last ""
|
|
set -ogq @catppuccin_window_flags_icon_current ""
|
|
set -ogq @catppuccin_window_flags_icon_zoom ""
|
|
set -ogq @catppuccin_window_flags_icon_mark ""
|
|
set -ogq @catppuccin_window_flags_icon_silent ""
|
|
set -ogq @catppuccin_window_flags_icon_activity ""
|
|
set -ogq @catppuccin_window_flags_icon_bell ""
|
|
|
|
set -ogq @catppuccin_window_flags_icon_format "##{?window_activity_flag,#{E:@catppuccin_window_flags_icon_activity},}##{?window_bell_flag,#{E:@catppuccin_window_flags_icon_bell},}##{?window_silence_flag,#{E:@catppuccin_window_flags_icon_silent},}##{?window_active,#{E:@catppuccin_window_flags_icon_current},}##{?window_last_flag,#{E:@catppuccin_window_flags_icon_last},}##{?window_marked_flag,#{E:@catppuccin_window_flags_icon_mark},}##{?window_zoomed_flag,#{E:@catppuccin_window_flags_icon_zoom},}"
|
|
|
|
run '~/.tmux/plugins/tmux/catppuccin.tmux'
|
|
|
|
set -g status-right-length 100
|
|
set -g status-left-length 100
|
|
set -g status-left ""
|
|
set -g status-right "#{E:@catppuccin_status_directory}"
|
|
set -agF status-right "#{E:@catppuccin_status_battery}"
|
|
set -ag status-right "#{E:@catppuccin_status_host}"
|
|
set -ag status-right "#{E:@catppuccin_status_date_time}"
|
|
|
|
#set -g @catppuccin_directory_text " #{b:pane_current_path}"
|
|
set -g @plugin 'catppuccin/tmux'
|
|
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-battery'
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
run -b '~/.tmux/plugins/tpm/tpm'
|