nixos-config/programs/shell/tmux/home-manager.nix
Charlotte 🦝 Delenk 2a226d3524
All checks were successful
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #23428 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #23429 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #23430 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.not522 Hydra build #23431 of nixos-config:pr618:nixosConfigurations.not522
Hydra checks.x86_64-linux.containers-default Hydra build #23427 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.not522-installer Hydra build #23432 of nixos-config:pr618:nixosConfigurations.not522-installer
fix shell error?
2024-11-03 18:04:16 +01:00

42 lines
999 B
Nix

{pkgs, ...}: {
programs.tmux = {
enable = true;
baseIndex = 1;
clock24 = true;
prefix = "C-a";
sensibleOnTop = true;
plugins = with pkgs.tmuxPlugins; [
power-theme
cpu
{
plugin = resurrect;
extraConfig = "set -g @resurrect-strategy-nvim 'session'";
}
{
plugin = continuum;
extraConfig = ''
set -g @continuum-restore 'on'
'';
}
];
extraConfig = ''
set-window-option -g automatic-rename on
set-option -g set-titles on
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind -n S-Left previous-window
bind -n S-Right next-window
set -sg escape-time 0
set -g mouse on
set -g default-terminal "screen-256color"
'';
};
programs.fish.shellInit = ''
if status is-interactive
and not set -q TMUX
tmux attach || tmux
end
'';
}