aboutsummaryrefslogtreecommitdiff
path: root/tmux/.tmux.conf
diff options
context:
space:
mode:
authorbozo.kopic <bozo.kopic@gmail.com>2020-05-08 19:37:41 +0200
committerbozo.kopic <bozo.kopic@gmail.com>2020-05-08 19:37:41 +0200
commit6c9130e407ab4a7d67588ba2cc47c39d0839cfe2 (patch)
tree3cff6c218fc584fe9b9bff68b0bf899584a0c2f8 /tmux/.tmux.conf
parente691d655633cc43b6275aad2b16eadfe3842a719 (diff)
.
Diffstat (limited to 'tmux/.tmux.conf')
-rw-r--r--tmux/.tmux.conf20
1 files changed, 15 insertions, 5 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf
index e011822..9eec3eb 100644
--- a/tmux/.tmux.conf
+++ b/tmux/.tmux.conf
@@ -3,9 +3,9 @@ set -g default-command "fish"
set -g escape-time 0
-unbind C-b
set -g prefix C-a
bind C-a send-prefix
+unbind C-b
set -g set-clipboard on
@@ -17,13 +17,23 @@ set -g default-terminal "screen-256color"
set -g mouse on
-bind-key -n 'C-M-Left' prev
-bind-key -n 'C-M-h' prev
-bind-key -n 'C-M-Right' next
-bind-key -n 'C-M-l' next
+bind-key -n 'C-M-Left' prev
+bind-key -n 'C-M-Right' next
+bind-key -n 'C-M-Up' new-window
+bind-key -n 'C-M-Down' confirm-before -p "kill-window #W? (y/n)" kill-window
+
+bind-key -n 'C-M-h' select-pane -L
+bind-key -n 'C-M-l' select-pane -R
+bind-key -n 'C-M-k' select-pane -U
+bind-key -n 'C-M-j' select-pane -D
+#bind-key -n 'C-M-\\' split-window -h
+#bind-key -n 'C-M-\-' split-window
+bind-key -n 'C-M-x' confirm-before -p "kill-pane #P? (y/n)" kill-pane
+
set -g status-style "fg=black,bg=colour34"
bind-key 'Up' select-pane -P 'fg=white,bg=black'
bind-key 'Down' select-pane -P 'fg=black,bg=white'
+
bind-key ] run "xclip -o -selection clipboard | tmux load-buffer - && tmux paste-buffer"