Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
94 lines (70 sloc) 2.47 KB
# $Id: screen-keys.conf,v 1.6 2010/02/02 21:34:16 nicm Exp $
#
# By Nicholas Marriott. Public domain.
#
# This configuration file binds many of the common GNU screen key bindings to
# appropriate tmux key bindings. Note that for some key bindings there is no
# tmux analogue and also that this set omits binding some commands available in
# tmux but not in screen.
#
# Note this is only a selection of key bindings and they are in addition to the
# normal tmux key bindings. This is intended as an example not as to be used
# as-is.
set -g @almost-sensible 'on'
set -g mode-mouse 'on'
unbind C-b
set -g prefix ^A
bind-key a send-prefix
# other ^A
unbind ^A
bind ^A last-window
# open a man page in new window
bind / command-prompt "split-window 'exec man %%'"
# enable wm window titles
set -g set-titles on
set -g status-right ""
set -g status-left "[#h]"
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-bg default #base02
set-option -g status-fg green #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg white #orange
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg brightgreen #base01
# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
set-option -g status-justify left
bind r source-file ~/.tmux.conf
#Send prefix
bind-key a send-prefix
# Urlview support
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
setw -g aggressive-resize on
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Plugins
set -g @tpm_plugins " \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-pain-control \
"
run-shell '~/.tmux/plugins/tpm/tpm'