1# Id: screen-keys.conf,v 1.7 2010-07-31 11:39:13 nicm Exp 2# 3# By Nicholas Marriott. Public domain. 4# 5# This configuration file binds many of the common GNU screen key bindings to 6# appropriate tmux key bindings. Note that for some key bindings there is no 7# tmux analogue and also that this set omits binding some commands available in 8# tmux but not in screen. 9# 10# Note this is only a selection of key bindings and they are in addition to the 11# normal tmux key bindings. This is intended as an example not as to be used 12# as-is. 13 14# Set the prefix to ^A. 15unbind C-b 16set -g prefix ^A 17bind a send-prefix 18 19# Bind appropriate commands similar to screen. 20# lockscreen ^X x 21unbind ^X 22bind ^X lock-server 23unbind x 24bind x lock-server 25 26# screen ^C c 27unbind ^C 28bind ^C new-window 29unbind c 30bind c new-window 31 32# detach ^D d 33unbind ^D 34bind ^D detach 35 36# displays * 37unbind * 38bind * list-clients 39 40# next ^@ ^N sp n 41unbind ^@ 42bind ^@ next-window 43unbind ^N 44bind ^N next-window 45unbind " " 46bind " " next-window 47unbind n 48bind n next-window 49 50# title A 51unbind A 52bind A command-prompt "rename-window %%" 53 54# other ^A 55unbind ^A 56bind ^A last-window 57 58# prev ^H ^P p ^? 59unbind ^H 60bind ^H previous-window 61unbind ^P 62bind ^P previous-window 63unbind p 64bind p previous-window 65unbind BSpace 66bind BSpace previous-window 67 68# windows ^W w 69unbind ^W 70bind ^W list-windows 71unbind w 72bind w list-windows 73 74# quit \ 75unbind '\' 76bind '\' confirm-before "kill-server" 77 78# kill K k 79unbind K 80bind K confirm-before "kill-window" 81unbind k 82bind k confirm-before "kill-window" 83 84# redisplay ^L l 85unbind ^L 86bind ^L refresh-client 87unbind l 88bind l refresh-client 89 90# split -v | 91unbind | 92bind | split-window 93 94# :kB: focus up 95unbind Tab 96bind Tab select-pane -t:.+ 97unbind BTab 98bind BTab select-pane -t:.- 99 100# " windowlist -b 101unbind '"' 102bind '"' choose-window 103