steal kylie's tmux config hehe
This commit is contained in:
parent
fad07ae5c5
commit
74d4f39ee1
1 changed files with 51 additions and 33 deletions
84
.tmux.conf
84
.tmux.conf
|
@ -1,44 +1,62 @@
|
|||
# assume 256 colors
|
||||
set -g default-terminal "tmux-256color"
|
||||
# Usage options
|
||||
|
||||
# default statusbar colors
|
||||
set-option -g status-bg colour235 #base02
|
||||
set-option -g status-fg colour10 #yellow
|
||||
## Always tell windows we can use 256 colors.
|
||||
set-option -g default-terminal "tmux-256color"
|
||||
|
||||
# pane number display
|
||||
set-option -g display-panes-active-colour colour10 #blue
|
||||
set-option -g display-panes-colour colour9 #orange
|
||||
set-option -g mouse on
|
||||
|
||||
# Zero-based indexing is sure great in programming languages,
|
||||
# but not so much in terminal multiplexers where that zero is all the way on the other side of the keyboard.
|
||||
set-option -g base-index 1
|
||||
## Set scrollback length.
|
||||
set-option -g history-limit 20000
|
||||
|
||||
# Enable mouse
|
||||
set-window-option -qg mode-mouse on
|
||||
set-option -qg mouse-select-pane on
|
||||
set-option -qg mouse-resize-pane on
|
||||
set-option -qg mouse-select-window on
|
||||
set-option -qg mouse-utf8 on
|
||||
set-option -qg mouse on
|
||||
## Send xterm(1) focus events to windows running under the server.
|
||||
set-option -g focus-events on
|
||||
|
||||
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
|
||||
set -s escape-time 50
|
||||
## Indicate modifiers like shift/alt/ctrl using xterm(1) sequences.
|
||||
set-option -g xterm-keys on
|
||||
|
||||
#statusline setup
|
||||
set -g status on
|
||||
set -qg status-utf8 on
|
||||
set -g status-interval 2
|
||||
set -g status-right-length 70
|
||||
## Set terminal (client) titles appropriately.
|
||||
set-option -g set-titles on
|
||||
set-option -g set-titles-string "tmux - #T"
|
||||
|
||||
# uptime
|
||||
set -g status-right "#[fg=orange][#[fg=orange]↑ #(uptime | sed -r 's/.*up//' | sed 's/,.*//' | sed 's/^ *//')#[fg=orange]]"
|
||||
## Don't make Esc usage have a delay (which is annoying when using kak(1)).
|
||||
set-option -g escape-time 25
|
||||
|
||||
#load average
|
||||
set -ag status-right "#[fg=orange][#[fg=orange]#(uptime | sed 's/.*load average: //' | sed 's/,//g')#[fg=orange]]"
|
||||
# Style
|
||||
## Status bar colors.
|
||||
set-option -g status-left-style "fg=colour10"
|
||||
set-option -g status-right-style "fg=colour10"
|
||||
set-option -g status-style "bg=default,fg=colour10"
|
||||
|
||||
#date/time
|
||||
set -ag status-right "#[fg=orange][#[fg=orange]%d-%m-%Y #[fg=orange]%H:%M#[fg=orange]]"
|
||||
## Pane colors.
|
||||
set-option -g pane-active-border-style "bg=default,fg=colour10"
|
||||
|
||||
## Window entries (in status bar) colors.
|
||||
set-option -g window-status-activity-style "bg=default,fg=white,bold,reverse"
|
||||
set-option -g window-status-bell-style "bg=default,fg=colour10,bold,reverse"
|
||||
set-option -g window-status-current-style "bg=default,fg=colour10,bold,reverse"
|
||||
set-option -g window-status-style "bg=default,fg=colour10"
|
||||
|
||||
# Status bar
|
||||
|
||||
set-option -g status on
|
||||
set-option -g status-interval 5
|
||||
set-option -g status-position top
|
||||
set-option -g status-justify left
|
||||
|
||||
## Window format, akin to catgirl(1).
|
||||
set-option -g window-status-format " #I #W "
|
||||
set-option -g window-status-separator ""
|
||||
set-option -g window-status-current-format " #I #W "
|
||||
|
||||
## Nothing on the left, a simple clock and hostname (no domain) on the right.
|
||||
set-option -g status-left ""
|
||||
set-option -g status-right "#h %I:%M %p"
|
||||
set-option -g status-left-length 0
|
||||
|
||||
# Windows
|
||||
set-option -g monitor-activity on
|
||||
set-option -g visual-activity on
|
||||
set-option -g renumber-windows on
|
||||
set-option -g focus-events on
|
||||
|
||||
# ctrl-Bmeta-Q exit terminal
|
||||
bind-key M-q kill-session
|
||||
|
||||
|
|
Loading…
Reference in a new issue