finalize tmux
This commit is contained in:
parent
79a108bf2c
commit
3d0d1e57cd
2 changed files with 75 additions and 26 deletions
31
.tmux.conf
31
.tmux.conf
|
|
@ -1,16 +1,32 @@
|
|||
# Source changes without restarting tmux:
|
||||
# tmux source-file ~/.tmux.conf
|
||||
# I have a custom Planck EZ layer for tmux
|
||||
# so I don't have to adjust keyboard shortcuts
|
||||
#
|
||||
# Still, the most important ones to me:
|
||||
# Prefix is Ctrl+b, then:
|
||||
# c create new window
|
||||
# n switch to next window
|
||||
# <n> switch to windows <n>
|
||||
# o switch to next pane
|
||||
# % split pane vertically
|
||||
# " split pane horizontally
|
||||
# <Space> change layout when having more than one pane
|
||||
# , rename active window
|
||||
|
||||
# I don't know
|
||||
set -g mouse on
|
||||
|
||||
# Mouse scroll speed
|
||||
# Increase scrollback history
|
||||
set-option -g history-limit 50000
|
||||
|
||||
# Faster mouse scrolling
|
||||
set -g @scroll-speed-num-lines-per-scroll 5
|
||||
|
||||
# Vi mode to copy things from terminal
|
||||
setw -g mode-keys vi
|
||||
|
||||
# Count panes from 1
|
||||
# Count panes from 1 instead of 0
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
|
|
@ -19,19 +35,20 @@ set -g status-style fg=#9d7cd8,bg=#16161e
|
|||
set-window-option -g window-status-current-style bg=#3e3158
|
||||
set -g status-position top
|
||||
set -g status-interval 10
|
||||
set -g status-left-length 120
|
||||
set -g status-left ' New: bc Ren: b, Go: b<n> '
|
||||
set -g status-left-length 60
|
||||
set -g status-left ' Remember tmux layer'
|
||||
set -g status-justify centre
|
||||
set -g status-right "#( ~/tmux.sh )"
|
||||
set -g status-right-length 120
|
||||
set -g status-right-length 60
|
||||
|
||||
# Get good colors
|
||||
set-option -g default-terminal "screen-256color"
|
||||
# https://www.reddit.com/r/tmux/comments/mesrci/tmux_2_doesnt_seem_to_use_256_colors/
|
||||
#set-option -g default-terminal "screen-256color"
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -ga terminal-overrides ",*256col*:Tc"
|
||||
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||
set-environment -g COLORTERM "truecolor"
|
||||
|
||||
# Display messages longer (ms)
|
||||
set-option -g display-time 4000
|
||||
#set-option -g display-time 4000
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue