diff options
-rw-r--r-- | tmux/.config/tmux/tmux.conf | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 343134e..8983270 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -1,16 +1,28 @@ -set -g mouse on -set -g base-index 1 set -g default-terminal "tmux-256color" set -ga terminal-overrides ",alacritty:Tc" set -ga terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support set -ga terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0 -set -g detach-on-destroy off + +set -g mouse on set -g prefix C-a -bind-key f run-shell ~/.local/bin/tmux-sessionizer -bind-key F run-shell ~/.local/bin/tmux-sessions -bind-key e new-window -Sn nvim nvim -bind-key s display-popup -E spt +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 -S nvim +bind-key -N "Open neovim in current directory" E new-window -S nvim . +bind-key -N "Open spotify in popup" s display-popup -w 75% -h 75% -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 75% -h 75% -E lazygit +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' |