aboutsummaryrefslogtreecommitdiff
path: root/stow/tmux
diff options
context:
space:
mode:
Diffstat (limited to 'stow/tmux')
-rw-r--r--stow/tmux/.tmux.conf24
1 files changed, 14 insertions, 10 deletions
diff --git a/stow/tmux/.tmux.conf b/stow/tmux/.tmux.conf
index bf4fb10..db37de0 100644
--- a/stow/tmux/.tmux.conf
+++ b/stow/tmux/.tmux.conf
@@ -3,6 +3,11 @@
#####################################
+# Try using space as the prefix
+# I hate over-writing ctrl+b for vim
+unbind C-Space
+set -g prefix C-Space
+bind C-Space send-prefix
# Splits always start in the current pane's working directory
unbind '"'
unbind %
@@ -28,11 +33,13 @@ bind C-e run-shell "~/.tmux/scripts/rolodex new"
# Faster window switching
bind C-n next-window
bind C-p previous-window
-bind S switch-client -l
+# Use C-b to switch to last session
+unbind C-b
+bind C-b switch-client -l
# Synchronize mode
bind a set-window-option synchronize-panes
# Remap zoom, sleeping tmux way too much
-bind C-b resize-pane -Z
+bind C-Space resize-pane -Z
# I constantly mix up copy/paste. Very annoying/dangerous if cliboard has commands in it
unbind [
bind C-f copy-mode
@@ -45,8 +52,7 @@ bind -Tcopy-mode-vi Enter send -X copy-pipe "tmux save-buffer - | xp"
# clock mode is over written by sessionist
bind C-t clock-mode
# Use fzf for switching sessions
-unbind s
-bind s \
+bind C-d \
display-popup \
-E \
"tmux list-sessions \
@@ -54,8 +60,6 @@ bind s \
| grep -v \"^$(tmux display-message -p '#S')\$\" \
| fzf --reverse \
| xargs tmux switch-client -t"
-# Renumber the windows
-bind C-w run-shell "~/.tmux/scripts/window_renum"
#####################################
# Settings
@@ -96,15 +100,15 @@ set-option -g status-left-length 110
set-option -g status-left "#S [#H]"
set-option -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\" %H:%M %Y-%m-%d"
set-option -g focus-events on
+# If you have windows 1, 2, 3 and delete 2 I want the remaining to be 1, 2 not 1, 3
+set-option -g renumber-windows on
+
# Log focus to file
set-hook -g pane-focus-in 'run "echo I #{pane_id} $(date) >>/tmp/focus"'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
-set -g @plugin 'Thornycrackers-Forks/tmux-sessionist'
-set -g @plugin 'Thornycrackers-Forks/tmux-open'
-set -g @plugin 'Thornycrackers-Forks/tmux-fingers'
-set -g @fingers-main-action 'tmux save-buffer - | xp'
+# No plugins for now
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'