tmux
This commit is contained in:
+50
-22
@@ -3,14 +3,7 @@
|
||||
######################
|
||||
# escape time
|
||||
set -sg escape-time 0
|
||||
|
||||
# loud or quiet?
|
||||
setw -g monitor-activity off
|
||||
|
||||
# enable vi mode keys
|
||||
setw -g mode-keys vi
|
||||
|
||||
# mouse control (clickable windows, panes, resizable panes)
|
||||
set -g mouse on
|
||||
|
||||
# clipboard control
|
||||
@@ -19,11 +12,8 @@ set -g allow-passthrough
|
||||
set -g history-limit 20000
|
||||
set -g focus-events on
|
||||
|
||||
# terminal
|
||||
set -g default-shell /bin/nu
|
||||
|
||||
# screen colors
|
||||
set -ga terminal-overrides ",*-256color*:Tc"
|
||||
set -as terminal-features ",gnome*:RGB"
|
||||
|
||||
# Start with index 1
|
||||
set -g base-index 1
|
||||
@@ -32,7 +22,10 @@ setw -g pane-base-index 1
|
||||
# pane title
|
||||
setw -g pane-border-status top
|
||||
setw -g pane-border-format ' #{=/-20/…:pane_title} [#{=/-20/…:pane_current_command}] #(pgrep -P "#{pane_pid}" | tr "\n" " ")#{pane_current_path} #{?alternate_on,<Alt Mode> ,}'
|
||||
#set -g pane-border-format "#P: #{pane_current_command}"
|
||||
set -g window-style 'fg=color252,bg=color236'
|
||||
set -g window-active-style 'fg=color253,bg=color235'
|
||||
set -g pane-active-border-style fg=white
|
||||
set -g pane-border-style fg=grey
|
||||
|
||||
|
||||
# Automatically set window title
|
||||
@@ -57,9 +50,8 @@ unbind -a
|
||||
bind ? list-keys
|
||||
bind d detach-client
|
||||
bind D choose-client
|
||||
bind ø command-prompt
|
||||
bind : command-prompt
|
||||
#bind \ show-messages
|
||||
bind '~' show-messages
|
||||
|
||||
# Copy mode
|
||||
bind c copy-mode
|
||||
@@ -76,6 +68,7 @@ bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip
|
||||
|
||||
# Rename window
|
||||
bind , command-prompt "rename-window %%"
|
||||
bind . command-prompt "rename-session %%"
|
||||
|
||||
# Clock mode
|
||||
bind t clock-mode
|
||||
@@ -105,16 +98,20 @@ bind S split-window -fv -c "#{pane_current_path}"
|
||||
bind o rotate-window
|
||||
bind Space next-layout
|
||||
bind = select-layout even-horizontal
|
||||
bind / select-layout even-vertical
|
||||
bind + select-layout main-horizontal
|
||||
bind - select-layout even-vertical
|
||||
bind _ select-layout main-vertical
|
||||
bind / select-layout tiled
|
||||
bind K swap-pane -d -t "{up-of}"
|
||||
bind J swap-pane -d -t "{down-of}"
|
||||
bind H swap-pane -d -t "{left-of}"
|
||||
bind L swap-pane -d -t "{right-of}"
|
||||
|
||||
# Choose Window
|
||||
bind w choose-window
|
||||
# Choose
|
||||
bind w choose-tree
|
||||
|
||||
# Change current pane to next window
|
||||
bind ` break-pane
|
||||
bind 1 join-pane -t :1 -h
|
||||
bind 2 join-pane -t :2 -h
|
||||
bind 3 join-pane -t :3 -h
|
||||
@@ -139,7 +136,7 @@ bind -n M-9 if-shell 'tmux select-window -t :9' '' 'new-window -t :9'
|
||||
bind -n M-0 if-shell 'tmux select-window -t :10' '' 'new-window -t :10'
|
||||
|
||||
# Kill Selected Pane
|
||||
bind Q kill-pane
|
||||
bind q confirm-before -p "kill-pane #P? (y/n)" kill-pane
|
||||
|
||||
# clear selected pane
|
||||
bind b send-keys -R \; clear-history \; send-keys Enter
|
||||
@@ -173,12 +170,43 @@ set -g @tmux-fzf-launch-key 'f'
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||
set -g @plugin 'arcticicestudio/nord-tmux'
|
||||
# set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
# set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
# set -g @plugin 'odedlaz/tmux-onedark-theme'
|
||||
# set -g @plugin 'arcticicestudio/nord-tmux'
|
||||
# set -g @plugin 'seebi/tmux-colors-solarized'
|
||||
# set -g @plugin 'jimeh/tmux-themepack'
|
||||
# set -g @plugin 'wfxr/tmux-power'
|
||||
set -g @plugin 'niksingh710/minimal-tmux-status'
|
||||
set -g @minimal-tmux-fg "#000000"
|
||||
set -g @minimal-tmux-bg "#698DDA"
|
||||
set -g @minimal-tmux-justify "centre"
|
||||
set -g @minimal-tmux-indicator-str " tmux "
|
||||
set -g @minimal-tmux-indicator true
|
||||
set -g @minimal-tmux-status "bottom"
|
||||
|
||||
# Enables or disables the left and right status bar
|
||||
set -g @minimal-tmux-right true
|
||||
set -g @minimal-tmux-left true
|
||||
|
||||
# expanded icon (fullscreen icon)
|
||||
set -g @minimal-tmux-expanded-icon " "
|
||||
|
||||
# on all tabs (default is false)
|
||||
# false will make it visible for the current tab only
|
||||
set -g @minimal-tmux-show-expanded-icons-for-all-tabs true
|
||||
|
||||
# To add or remove extra text in status bar
|
||||
set -g @minimal-tmux-status-right-extra ""
|
||||
set -g @minimal-tmux-status-left-extra ""
|
||||
|
||||
# To make the selection box rounded () or edged <>
|
||||
# Default is nothing, when set to true default is edged
|
||||
set -g @minimal-tmux-use-arrow true
|
||||
set -g @minimal-tmux-right-arrow ""
|
||||
set -g @minimal-tmux-left-arrow ""
|
||||
|
||||
# If getting strings cut in left status or right
|
||||
# Here 20 is the length of the characters in the string
|
||||
set -g status-right-length 20
|
||||
set -g status-left-length 20
|
||||
|
||||
# keep at bottom
|
||||
run -b '~/.config/tmux/plugins/tpm/tpm'
|
||||
|
||||
Reference in New Issue
Block a user