summaryrefslogtreecommitdiff
path: root/tmux
diff options
context:
space:
mode:
Diffstat (limited to 'tmux')
-rw-r--r--tmux/tmux.conf38
-rw-r--r--tmux/tmux.local.conf2
2 files changed, 40 insertions, 0 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
new file mode 100644
index 0000000..51c20a8
--- /dev/null
+++ b/tmux/tmux.conf
@@ -0,0 +1,38 @@
+source ~/.config/tmux/tmux.local.conf
+
+set-option -g allow-rename off
+set-option -g history-limit 100000
+set-option -s escape-time 0
+set-option -g set-titles on
+
+set-window-option -g mode-keys vi
+
+bind-key h select-pane -L
+bind-key j select-pane -D
+bind-key k select-pane -U
+bind-key l select-pane -R
+
+bind-key H resize-pane -L 5
+bind-key J resize-pane -D 5
+bind-key K resize-pane -U 5
+bind-key L resize-pane -R 5
+
+bind-key g popup -E -w 95% -h 95% -d '#{pane_current_path}' lazygit
+bind-key f popup -E -w 95% -h 95% -d '#{pane_current_path}' ranger
+bind-key e run-shell -b "tmux display-message -p '#{pane_id}' > /tmp/tmux-edit-target-#{client_pid} \; tmux popup -E -w 90% -h 35% -x 5% -y 65% -d '#{pane_current_path}' \"~/scripts/tmux-edit-send /tmp/tmux-edit-target-#{client_pid}\""
+bind-key N popup -E -w 95% -h 95% hx ~/Notes
+bind-key t popup -E -w 95% -h 95% hx fish
+
+# bind-key b break-pane -d
+bind-key c new-window -c '#{pane_current_path}'
+bind-key F new-window -n "session-switcher" "tmux list-sessions | fzf | cut -d: -f1 | xargs tmux switch-client -t"
+bind-key p setw synchronize-panes off
+bind-key P setw synchronize-panes on
+bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "~/.config/tmux/tmux.conf reloaded"
+bind-key T choose-tree
+
+set-option -g pane-active-border-style fg=magenta,bold
+
+set -g status-right '#{@hexai_status} #[fg=colour8]| %H:%M'
+set -g status-right-length 120
+set-environment -g HEXAI_TMUX_STATUS_THEME white-on-purple
diff --git a/tmux/tmux.local.conf b/tmux/tmux.local.conf
new file mode 100644
index 0000000..adb6294
--- /dev/null
+++ b/tmux/tmux.local.conf
@@ -0,0 +1,2 @@
+bind-key -T copy-mode-vi 'v' send -X begin-selection
+bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel