tmux: update keybinds pane-border-style
This commit is contained in:
+26
-20
@@ -1,7 +1,5 @@
|
|||||||
# tmux.conf
|
### Terminal
|
||||||
# ~ M. Thomas
|
|
||||||
|
|
||||||
######### Terminal Setup ##########
|
|
||||||
# set default terminal
|
# set default terminal
|
||||||
set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
# enable true color terminal
|
# enable true color terminal
|
||||||
@@ -9,7 +7,8 @@ set -ga terminal-overrides ",*256col*:Tc,alacritty:Tc"
|
|||||||
# enable hyperlinks
|
# enable hyperlinks
|
||||||
set -as terminal-features ",*:hyperlinks"
|
set -as terminal-features ",*:hyperlinks"
|
||||||
|
|
||||||
######### Keybinds ##########
|
### Keybinds
|
||||||
|
|
||||||
# new panes (open with current path)
|
# new panes (open with current path)
|
||||||
bind-key -n M-v split-window -h -c "#{pane_current_path}"
|
bind-key -n M-v split-window -h -c "#{pane_current_path}"
|
||||||
bind-key -n M-s split-window -v -c "#{pane_current_path}"
|
bind-key -n M-s split-window -v -c "#{pane_current_path}"
|
||||||
@@ -27,7 +26,7 @@ bind-key -n M-l select-pane -R
|
|||||||
bind-key -n M-f resize-pane -Z
|
bind-key -n M-f resize-pane -Z
|
||||||
|
|
||||||
# window rename
|
# window rename
|
||||||
bind-key -n M-, command-prompt -p "Rename window:" "rename-window '%%'"
|
bind-key -n M-, command-prompt -p "Rename tab:" "rename-window '%%'"
|
||||||
bind-key -n M-< set automatic-rename on
|
bind-key -n M-< set automatic-rename on
|
||||||
|
|
||||||
# navigate windows
|
# navigate windows
|
||||||
@@ -42,27 +41,26 @@ bind-key -n M-8 select-window -t 8
|
|||||||
bind-key -n M-9 select-window -t 9
|
bind-key -n M-9 select-window -t 9
|
||||||
|
|
||||||
# swap panes
|
# swap panes
|
||||||
bind-key -n 'M-J' swap-pane -D
|
bind-key -n 'M-r' swap-pane -D
|
||||||
bind-key -n 'M-K' swap-pane -U
|
bind-key -n 'M-R' swap-pane -U
|
||||||
|
|
||||||
# move panes to and from windows
|
# move panes to and from windows
|
||||||
bind-key -n 'M-t' command-prompt -p "Send pane to:" "join-pane -t :'%%'"
|
bind-key -n 'M-t' command-prompt -p "Move pane to tab:" "join-pane -t :'%%'"
|
||||||
bind-key -n 'M-!' select-layout even-horizontal
|
bind-key -n 'M-!' select-layout even-horizontal
|
||||||
bind-key -n 'M-@' select-layout even-vertical
|
bind-key -n 'M-@' select-layout even-vertical
|
||||||
bind-key -n 'M-#' select-layout main-vertical
|
bind-key -n 'M-#' select-layout main-vertical
|
||||||
|
|
||||||
# move windows
|
# move windows
|
||||||
bind-key -n M-. command-prompt -p "Swap window with:" "swap-window -t :'%%'"
|
bind-key -n M-. command-prompt -p "Swab tab with:" "swap-window -t :'%%'"
|
||||||
|
|
||||||
set -g main-pane-width 40%
|
|
||||||
|
|
||||||
# resize panes
|
# resize panes
|
||||||
bind-key -n 'M-Left' resize-pane -L 5
|
bind-key -n 'M-H' resize-pane -L 5
|
||||||
bind-key -n 'M-Right' resize-pane -R 5
|
bind-key -n 'M-L' resize-pane -R 5
|
||||||
bind-key -n 'M-Up' resize-pane -U 5
|
bind-key -n 'M-K' resize-pane -U 5
|
||||||
bind-key -n 'M-Down' resize-pane -D 5
|
bind-key -n 'M-J' resize-pane -D 5
|
||||||
|
|
||||||
|
### Misc
|
||||||
|
|
||||||
########## General ##########
|
|
||||||
# alias
|
# alias
|
||||||
set -s command-alias[1] respawn='respawn-pane -k'
|
set -s command-alias[1] respawn='respawn-pane -k'
|
||||||
|
|
||||||
@@ -79,13 +77,21 @@ set-option -g mouse on
|
|||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
setw -g pane-base-index 1
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
|
### Theme
|
||||||
|
|
||||||
|
set -g main-pane-width 40%
|
||||||
|
|
||||||
# set terminal window title (update every second)
|
# set terminal window title (update every second)
|
||||||
set-option -g status-interval 1
|
set-option -g status-interval 1
|
||||||
set-option -g set-titles on
|
set-option -g set-titles on
|
||||||
set-option -g set-titles-string "#H: #W"
|
set-option -g set-titles-string "#H: #W"
|
||||||
|
|
||||||
# Make inactive border a bit less noticeable
|
# Pane borders
|
||||||
set -g pane-border-style fg="#e3ddcc"
|
set -g pane-border-style fg=#8da101
|
||||||
|
set -g pane-border-status top
|
||||||
|
set -g pane-border-lines single
|
||||||
|
set -g pane-border-format " #{?pane_active,#[bold],#[fg=#c3c6b2]}#{pane_index} "
|
||||||
|
set -g pane-border-indicators colour
|
||||||
|
|
||||||
# Status
|
# Status
|
||||||
set -g status-style bg=default
|
set -g status-style bg=default
|
||||||
@@ -93,6 +99,6 @@ set -g message-style bg=default
|
|||||||
set -g status-right "#[fg=yellow]#H(#S) #[fg=blue]#{=100:pane_current_path}#[fg=black]"
|
set -g status-right "#[fg=yellow]#H(#S) #[fg=blue]#{=100:pane_current_path}#[fg=black]"
|
||||||
set -g status-right-length 200
|
set -g status-right-length 200
|
||||||
set -g status-left ""
|
set -g status-left ""
|
||||||
set -g window-status-format "#I:#W "
|
set -g window-status-format "#[fg=#c3c6b2]#I:#W#[fg=default] "
|
||||||
set -g window-status-current-format "#[underscore]#I:#W#[nounderscore] "
|
set -g window-status-current-format "#I:#W "
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user