add tmux
All checks were successful
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #23404 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #23402 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #23401 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #23403 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-03 16:49:14 +01:00
parent c41810c972
commit c098b13cc8
2 changed files with 37 additions and 0 deletions

View file

@ -1,5 +1,6 @@
_: {
imports = [
./fish
./tmux
];
}

View file

@ -0,0 +1,36 @@
{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"
'';
};
}