fix tmux.conf symbolic link
This commit is contained in:
parent
e9fef31e9d
commit
ba449ee0b9
@ -1 +0,0 @@
|
|||||||
/home/h7x4/.tmux.conf
|
|
118
general/.tmux.conf
Normal file
118
general/.tmux.conf
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
# remap prefix from 'C-b' to 'C-a'
|
||||||
|
unbind C-b
|
||||||
|
set-option -g prefix C-a
|
||||||
|
bind-key C-a send-prefix
|
||||||
|
|
||||||
|
# Split panes using gh
|
||||||
|
bind h split-window -h -c "#{pane_current_path}"
|
||||||
|
bind g split-window -v -c "#{pane_current_path}"
|
||||||
|
unbind '"' # Unbind default vertical split
|
||||||
|
unbind % # Unbind default horizontal split
|
||||||
|
|
||||||
|
# Reload config
|
||||||
|
unbind r
|
||||||
|
bind r \
|
||||||
|
source-file ~/.tmux.conf\;\
|
||||||
|
display-message 'Reloaded tmux.conf'
|
||||||
|
|
||||||
|
# Switch panes using Alt-hjkl without prefix
|
||||||
|
bind -n C-h select-pane -L
|
||||||
|
bind -n C-j select-pane -D
|
||||||
|
bind -n C-k select-pane -U
|
||||||
|
bind -n C-l select-pane -R
|
||||||
|
|
||||||
|
# Resize pane
|
||||||
|
bind -n M-H resize-pane -L 5
|
||||||
|
bind -n M-J resize-pane -D 5
|
||||||
|
bind -n M-K resize-pane -U 5
|
||||||
|
bind -n M-L resize-pane -R 5
|
||||||
|
|
||||||
|
# Fullscreen current pane
|
||||||
|
unbind z
|
||||||
|
bind M-z resize-pane -Z
|
||||||
|
|
||||||
|
unbind &
|
||||||
|
bind BSpace killp
|
||||||
|
|
||||||
|
# Swap clock-mode and new-window
|
||||||
|
unbind c
|
||||||
|
unbind t
|
||||||
|
bind c clock-mode
|
||||||
|
bind t new-window
|
||||||
|
|
||||||
|
# Setup 'y' to yank (copy)
|
||||||
|
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "pbcopy"
|
||||||
|
bind-key -T copy-mode-vi 'V' send -X select-line
|
||||||
|
bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
|
||||||
|
|
||||||
|
|
||||||
|
# OTHER SETTINGS
|
||||||
|
|
||||||
|
# Don't rename windows automatically after rename with ','
|
||||||
|
set-option -g allow-rename off
|
||||||
|
|
||||||
|
set -g mouse on
|
||||||
|
setw -q -g utf8 on
|
||||||
|
# setw -g mode-keys vi
|
||||||
|
set-option -g default-terminal screen-256color
|
||||||
|
set -g base-index 1 # windows starts at 1
|
||||||
|
setw -g monitor-activity on
|
||||||
|
set -g visual-activity on
|
||||||
|
set -s escape-time 0 # ESC time until registered
|
||||||
|
|
||||||
|
# Length of tmux status line
|
||||||
|
set -g status-left-length 30
|
||||||
|
set -g status-right-length 150
|
||||||
|
|
||||||
|
set -g base-index 1
|
||||||
|
set -g pane-base-index 0
|
||||||
|
|
||||||
|
|
||||||
|
######################
|
||||||
|
### DESIGN CHANGES ###
|
||||||
|
######################
|
||||||
|
|
||||||
|
set-option -g status-left '#[fg=green]#(~/.scripts/tmux/fcitx) #[fg=red]%H:%M '
|
||||||
|
set-option -g status-right '#[fg=red]#(~/.scripts/tmux/mpd)'
|
||||||
|
set-window-option -g window-status-current-style fg=magenta
|
||||||
|
set-option -g status-style 'bg=black fg=default'
|
||||||
|
set-option -g default-shell '/bin/zsh'
|
||||||
|
|
||||||
|
#OTHER DESIGN CHANGES
|
||||||
|
|
||||||
|
# # loud or quiet?
|
||||||
|
# set -g visual-activity off
|
||||||
|
# set -g visual-bell off
|
||||||
|
# set -g visual-silence off
|
||||||
|
# setw -g monitor-activity off
|
||||||
|
# set -g bell-action none
|
||||||
|
|
||||||
|
# # modes
|
||||||
|
# setw -g clock-mode-colour colour5
|
||||||
|
# setw -g mode-style 'fg=colour1 bg=colour18 bold'
|
||||||
|
|
||||||
|
# # panes
|
||||||
|
# set -g pane-border-style 'fg=colour8 bg=colour0'
|
||||||
|
# set -g pane-active-border-style 'bg=colour0 fg=colour2'
|
||||||
|
|
||||||
|
# # statusbar
|
||||||
|
# set -g status-position bottom
|
||||||
|
# set -g status-justify left
|
||||||
|
# set -g status-style 'bg=color2 fg=colour2 dim'
|
||||||
|
# set -g status-left ''
|
||||||
|
# set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
|
||||||
|
# set -g status-right-length 50
|
||||||
|
# set -g status-left-length 20
|
||||||
|
|
||||||
|
# setw -g window-status-current-style 'fg=colour2 bg=colourbackground bold'
|
||||||
|
# setw -g window-status-current-format ' #I#[fg=colour2]:#[fg=colour2]#W#[fg=colour2]#F '
|
||||||
|
|
||||||
|
# setw -g window-status-style 'fg=colour8 bg=colour18'
|
||||||
|
# setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
|
||||||
|
|
||||||
|
# setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
|
||||||
|
|
||||||
|
# # messages
|
||||||
|
# set -g message-style 'fg=colour232 bg=colour16 bold'
|
||||||
|
|
||||||
|
# vim: filetype=.tmux.conf:
|
Loading…
Reference in New Issue
Block a user