changed tmux prefix to default
This commit is contained in:
parent
b099db5670
commit
0746c613f1
1 changed files with 55 additions and 56 deletions
|
|
@ -1,59 +1,58 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
programs.tmux = {
|
||||||
programs.tmux = {
|
enable = true;
|
||||||
enable = true;
|
terminal = "tmux-256color";
|
||||||
terminal = "tmux-256color";
|
#prefix = "C-Space";
|
||||||
prefix = "C-Space";
|
clock24 = true;
|
||||||
clock24 = true;
|
mouse = true;
|
||||||
mouse = true;
|
keyMode = "vi";
|
||||||
keyMode = "vi";
|
baseIndex = 1;
|
||||||
baseIndex = 1;
|
sensibleOnTop = true;
|
||||||
sensibleOnTop = true;
|
disableConfirmationPrompt = true;
|
||||||
disableConfirmationPrompt = true;
|
plugins = with pkgs.tmuxPlugins; [
|
||||||
plugins = with pkgs.tmuxPlugins; [
|
vim-tmux-navigator
|
||||||
vim-tmux-navigator
|
{
|
||||||
{
|
plugin = catppuccin;
|
||||||
plugin = catppuccin;
|
extraConfig = ''
|
||||||
extraConfig = ''
|
set -g @catppuccin_flavour 'mocha'
|
||||||
set -g @catppuccin_flavour 'mocha'
|
set -g @catppuccin_date_time "%H:%M"
|
||||||
set -g @catppuccin_date_time "%H:%M"
|
'';
|
||||||
'';
|
}
|
||||||
}
|
{
|
||||||
{
|
plugin = resurrect;
|
||||||
plugin = resurrect;
|
extraConfig = ''
|
||||||
extraConfig = ''
|
set -g @resurrect-strategy-vim 'session'
|
||||||
set -g @resurrect-strategy-vim 'session'
|
set -g @resurrect-strategy-nvim 'session'
|
||||||
set -g @resurrect-strategy-nvim 'session'
|
set -g @resurrect-capture-pane-contents 'on'
|
||||||
set -g @resurrect-capture-pane-contents 'on'
|
'';
|
||||||
'';
|
}
|
||||||
}
|
{
|
||||||
{
|
plugin = continuum;
|
||||||
plugin = continuum;
|
extraConfig = ''
|
||||||
extraConfig = ''
|
set -g @continuum-restore 'on'
|
||||||
set -g @continuum-restore 'on'
|
set -g @continuum-boot 'on'
|
||||||
set -g @continuum-boot 'on'
|
set -g @continuum-save-interval '10'
|
||||||
set -g @continuum-save-interval '10'
|
'';
|
||||||
'';
|
}
|
||||||
}
|
yank
|
||||||
yank
|
];
|
||||||
];
|
extraConfig = ''
|
||||||
extraConfig = ''
|
# Shift Alt vim keys to switch windows
|
||||||
# Shift Alt vim keys to switch windows
|
bind -n M-H previous-window
|
||||||
bind -n M-H previous-window
|
bind -n M-L next-window
|
||||||
bind -n M-L next-window
|
# Use Alt-arrow keys without prefix key to switch panes
|
||||||
# Use Alt-arrow keys without prefix key to switch panes
|
bind -n M-Left select-pane -L
|
||||||
bind -n M-Left select-pane -L
|
bind -n M-Right select-pane -R
|
||||||
bind -n M-Right select-pane -R
|
bind -n M-Up select-pane -U
|
||||||
bind -n M-Up select-pane -U
|
bind -n M-Down select-pane -D
|
||||||
bind -n M-Down select-pane -D
|
|
||||||
|
|
||||||
# keybindings
|
# keybindings
|
||||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||||
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||||
|
|
||||||
bind '"' split-window -v -c "#{pane_current_path}"
|
bind '"' split-window -v -c "#{pane_current_path}"
|
||||||
bind % split-window -h -c "#{pane_current_path}"
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue