summaryrefslogtreecommitdiffstatshomepage
path: root/tmux/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-05-25 16:12:54 -0500
committerToby Vincent <tobyv13@gmail.com>2022-05-25 16:12:54 -0500
commit0d140f9fefb930aae2a31557fc1e5d85ab55c997 (patch)
tree929e4f177018b69dfcfdb2c22c0d0476280fc4fd /tmux/.config
parentda2f35b4d997a79853c7e4341ea2d76cb296034c (diff)
revert(tmux): remove lazygit popup due to bug with env and remove tmux resurrect
Diffstat (limited to 'tmux/.config')
-rw-r--r--tmux/.config/tmux/tmux.conf15
1 files changed, 5 insertions, 10 deletions
diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf
index 8cfb943..44a38aa 100644
--- a/tmux/.config/tmux/tmux.conf
+++ b/tmux/.config/tmux/tmux.conf
@@ -9,32 +9,27 @@ set -g prefix C-a
set -g base-index 1
set -g pane-base-index 1
-
set -g detach-on-destroy off
-set -g lock-after-time 300
-set -g lock-command "tmux clock-mode"
bind-key -N "Open new window" t new-window
bind-key -N "Show a clock" T clock-mode
bind-key -N "Open project in new session" f run-shell ~/.local/bin/tmux-sessionizer
bind-key -N "Switch between sessions" F run-shell ~/.local/bin/tmux-sessions
-bind-key -N "Open neovim" e new-window -Sn nvim nvim
+bind-key -N "Open neovim" e new-window -Sn nvim nvim
bind-key -N "Open spotify in popup" s display-popup -w 90% -h 90% -E spt
bind-key -N "Open spotify in new window" S new-window -S spt
-bind-key -N "Open spotify in popup" g display-popup -w 90% -h 90% -E lazygit
+# TODO: fix issue with tmux popups using the tmux-server's parent env (in this case, wsl spawn env?)
+# https://www.reddit.com/r/tmux/comments/r3hfy0/tmux_popup_does_not_load_zshrc/
+# bind-key -N "Open lazygit in popup" g display-popup -w 90% -h 90% -E lazygit
+bind-key -N "Open lazygit" g send-keys "lazygit" Enter
bind-key -N "Open lazygit in new window" G new-window -S lazygit
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-pain-control'
-set -g @plugin 'tmux-plugins/tmux-resurrect'
-set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'lawabidingcactus/tmux-gruvbox-truecolor'
-set -g @resrrect-dir "$XDG_DATA_DIR/tmux/resurrect"
-set -g @resurrect-strategy-nvim 'session'
-
if "test ! -d $XDG_CONFIG_HOME/tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm $XDG_CONFIG_HOME/tmux/plugins/tpm && $XDG_CONFIG_HOME/tmux/plugins/tpm/bin/install_plugins'"