Use Alt+Arrow to resize tmux windows; Ctrl+Up/Down to switch sessions.

Fixes LP #945069 and LP #199015
This commit is contained in:
Jake Biesinger 2012-09-27 16:37:09 -07:00
commit 23de715dae
4 changed files with 20 additions and 20 deletions

View file

@ -46,10 +46,10 @@ bindkey "^[[1;2D" focus up # shift-left | focus up
bindkey "^[[1;2C" focus down # shift-right | focus down
# No ctrl-shift-F3 (move pane) in Screen
# No ctrl-shift-F4 (move pane) in Screen
bindkey "^[[1;5A" resize +1 # ctrl-up | resize +1
bindkey "^[[1;5B" resize -1 # ctrl-down | resize -1
bindkey "^[[1;5D" resize -1 # ctrl-left | resize -1
bindkey "^[[1;5C" resize +1 # ctrl-right | resize +1
bindkey "^[[1;3A" resize +1 # alt-up | resize +1
bindkey "^[[1;3B" resize -1 # alt-down | resize -1
bindkey "^[[1;3D" resize -1 # alt-left | resize -1
bindkey "^[[1;3C" resize +1 # alt-right | resize +1
register r ":source $BYOBU_CONFIG_DIR/profile^M" # | Goes with F5 definition
bindkey -k k5 eval 'process x' 'process r' # F5 | Reload profile
bindkey "^[[15;5~" eval 'process x' 'process r' 'stuff ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets^M"' # ctrl-F5 | reconnect gpg/ssh/x sockets

View file

@ -59,10 +59,10 @@ bindkey "^[[1;2A"
bindkey "^[[1;2B"
bindkey "^[[1;2D"
bindkey "^[[1;2C"
bindkey "^[[1;5A"
bindkey "^[[1;5B"
bindkey "^[[1;5D"
bindkey "^[[1;5C"
bindkey "^[[1;3A"
bindkey "^[[1;3B"
bindkey "^[[1;3D"
bindkey "^[[1;3C"
bindkey -k k5
bindkey "^[[15;5~"
bindkey "^[[15;6~"

View file

@ -33,8 +33,8 @@ bind-key -n F3 previous-window
bind-key -n F4 next-window
bind-key -n C-S-Left previous-window
bind-key -n C-S-Right next-window
bind-key -n M-Up choose-session \; send-keys Up \; send-keys Enter
bind-key -n M-Down choose-session \; send-keys Down \; send-keys Enter
bind-key -n C-Up choose-session \; send-keys Up \; send-keys Enter
bind-key -n C-Down choose-session \; send-keys Down \; send-keys Enter
bind-key -n S-F3 display-panes \; select-pane -t :.-
bind-key -n S-F4 display-panes \; select-pane -t :.+
bind-key -n S-Up display-panes \; select-pane -U
@ -45,10 +45,10 @@ bind-key -n C-F3 display-panes \; swap-pane -s :. -t :.- \; select-pane -t :.-
bind-key -n C-F4 display-panes \; swap-pane -s :. -t :.+ \; select-pane -t :.+
bind-key -n C-S-F3 swap-window -t :-1
bind-key -n C-S-F4 swap-window -t :+1
bind-key -n C-Up resize-pane -U
bind-key -n C-Down resize-pane -D
bind-key -n C-Left resize-pane -L
bind-key -n C-Right resize-pane -R
bind-key -n M-Up resize-pane -U
bind-key -n M-Down resize-pane -D
bind-key -n M-Left resize-pane -L
bind-key -n M-Right resize-pane -R
bind-key -n F5 source $BYOBU_PREFIX/share/byobu/profiles/tmuxrc
bind-key -n S-F5 new-window -k "$BYOBU_PREFIX/lib/byobu/include/cycle-status" \; source $BYOBU_PREFIX/share/byobu/profiles/tmuxrc
bind-key -n C-F5 send-keys ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets" \; send-keys Enter

View file

@ -29,8 +29,8 @@ unbind-key -n F3
unbind-key -n F4
unbind-key -n C-S-Left
unbind-key -n C-S-Right
unbind-key -n M-Up
unbind-key -n M-Down
unbind-key -n C-Up
unbind-key -n C-Down
unbind-key -n S-F3
unbind-key -n S-F4
unbind-key -n S-Up
@ -41,10 +41,10 @@ unbind-key -n C-F3
unbind-key -n C-F4
unbind-key -n C-S-F3
unbind-key -n C-S-F4
unbind-key -n C-Up
unbind-key -n C-Down
unbind-key -n C-Left
unbind-key -n C-Right
unbind-key -n M-Up
unbind-key -n M-Down
unbind-key -n M-Left
unbind-key -n M-Right
unbind-key -n F5
unbind-key -n S-F5
unbind-key -n C-F5