diff options
Diffstat (limited to 'modules/home/tmux.nix')
| -rw-r--r-- | modules/home/tmux.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/home/tmux.nix b/modules/home/tmux.nix new file mode 100644 index 0000000..f084f35 --- /dev/null +++ b/modules/home/tmux.nix @@ -0,0 +1,33 @@ +{ ... }: + +{ + home.file.".tmux.conf".text = '' + unbind r + bind r source-file ~/.tmux.conf \; display-message "Config reloaded" + + set -g default-terminal "tmux-256color" + set -ag terminal-overrides ",xterm-256color:RGB" + + set -g default-command "$SHELL -l" + + set -g prefix C-s + + set -g mouse on + + set -g base-index 1 + set-window-option -g mode-keys vi + + bind g new-window -c "#{pane_current_path}" -n "lazygit" lazygit + + bind f run-shell "tmux neww twm" + bind F run-shell "tmux neww twm -l" + bind s run-shell "tmux neww twm -e" # i rebind the original `s` to `S` so I can still use it + bind e run-shell "tmux switch -t $TWM_DEFAULT" # i set TWM_DEFAULT in my shellrc, just a session that is always available as a scratch area + + set -g @plugin 'tmux-plugins/tpm' + set -g @plugin 'christoomey/vim-tmux-navigator' + set -g @plugin 'tmux-plugins/tmux-sensible' + + run '~/.tmux/plugins/tpm/tpm' + ''; +} |
