86 lines
2.2 KiB
Plaintext
86 lines
2.2 KiB
Plaintext
# x1phosura's tmux config
|
|
# (there's really not too much interesting here)
|
|
|
|
# Notes to future self:
|
|
# to apply tmux configs on the fly while it's running, type Ctrl-b, then run
|
|
# :source ~/.tmux.conf
|
|
# Changes will be applied within the current session (bc they take place on the
|
|
# server).
|
|
# Also, tmux salved selected text in "buffers." Use: `tmux deleteb` to delete
|
|
# the most recently saved buffer
|
|
|
|
|
|
####################### Misc. configuration ########################
|
|
|
|
# Refresh status line every 5 sec (good for updating time, playing music, etc)
|
|
set -g status-interval 5
|
|
|
|
set-option -g status "on"
|
|
|
|
# Use vi-like bindings for stuff
|
|
set -g mode-keys vi
|
|
|
|
# enables mouse mode (for tmux version > 2.1)
|
|
set -g mouse on
|
|
|
|
# fixed REALLY DUMB tmux crash in the past (probably unnecessary now)
|
|
#set-option -g default-shell /bin/bash
|
|
|
|
|
|
####################### Key bindings ########################
|
|
# Note: to output current key bindings, run the following in the shell:
|
|
# `tmux list-keys` or `tmux lsk`
|
|
|
|
# Hold 'Alt' to access vi-like pane switching
|
|
bind -n M-h select-pane -L
|
|
bind -n M-j select-pane -D
|
|
bind -n M-k select-pane -U
|
|
bind -n M-l select-pane -R
|
|
|
|
# Use 'Slt-Shift' to access vi-like pane switching
|
|
bind -n M-H resize-pane -L 2
|
|
bind -n M-J resize-pane -D 2
|
|
bind -n M-K resize-pane -U 2
|
|
bind -n M-L resize-pane -R 2
|
|
|
|
|
|
####################### Color configuration ########################
|
|
|
|
# variables (personal)
|
|
accent1=colour127
|
|
accent2=colour133
|
|
|
|
# variables (work)
|
|
#accent1=colour63
|
|
#accent2=colour33
|
|
|
|
lightfg=colour7
|
|
palefg=colour223
|
|
darkfg=colour236
|
|
lessdarkfg=colour239
|
|
|
|
# Fixes color stuff in tmux/vim
|
|
set -g default-terminal "screen-256color"
|
|
|
|
# Default statusbar color
|
|
set-option -g status-style bg=$accent1,fg=$lightfg
|
|
|
|
# Active window title colors
|
|
set-window-option -g window-status-current-style bg=$accent2,fg=$lightfg
|
|
|
|
# Set active pane border color
|
|
set-option -g pane-active-border-style fg=$accent1
|
|
# Set inactive pane border color
|
|
set-option -g pane-border-style fg=$lessdarkfg
|
|
|
|
# Message info
|
|
set-option -g message-style bg=$lessdarkfg,fg=$palefg
|
|
|
|
# Writing commands inactive
|
|
set-option -g message-command-style bg=$lessdarkfg,fg=$lightfg
|
|
|
|
# Pane number display
|
|
set-option -g display-panes-active-colour $accent1
|
|
set-option -g display-panes-colour $darkfg
|
|
|