Files
Olympus/homes/nathan/home-manager/programs/terminal/tmux/default.nix
2026-03-31 20:07:15 -05:00

69 lines
2.2 KiB
Nix

{ ... }: {
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
programs.tmux = {
enable = true;
clock24 = true;
mouse = true;
baseIndex = 0;
keyMode = "vi";
prefix = "C-b";
shell = "${pkgs.zsh}/bin/zsh";
extraConfig = ''
set-option -g status-position top
set -g @background #0B0704
set -g @foreground #c2c1c0
set -g @color0 #0B0704
set -g @color1 #846550
set -g @color2 #4a526c
set -g @color3 #538281
set -g @color4 #7b8179
set -g @color5 #b4a589
set -g @color6 #78ada3
set -g @color7 #958d89
set -g @color8 #665b54
set -g @color9 #B1876B
set -g @color10 #636E90
set -g @color11 #6FAEAC
set -g @color12 #A5ADA2
set -g @color13 #F1DCB7
set -g @color14 #A1E7DA
set -g @color15 #c2c1c0
source ~/.cache/wal/colors-tmux.conf
set @p `pwd`
set-option -g status-interval 1
set-option -g status-style fg=@background,bg=@color3
set-option -g status-left-length 50
set-option -g status-left "#[fg=@color12,bg=@color1] #[fg=@color1,bg=@color2]#[fg=@color14]#{user}@#H#[fg=@color2,bg=@color4]#[fg=@color2]#{s|/home/#{user}|~:@p}#[fg=@color4,bg=@background]"
set-option -g status-right "#[fg=@color2]#[fg=@color14,bg=@color2]%A %T#[fg=@color1]#[fg=@color12,bg=@color1]%D "
set-option -g window-status-separator '/'
set-option -g window-status-format '#[fg=@color3,bg=@color3]#[fg=@background,bg=@color3] #{window_index}: #{window_name} #[fg=@color3,bg=@color3]'
set-option -g window-status-current-format '#[fg=@color11,bg=@color3]#[fg=@background,bg=@color11,bold] #{window_index}: #{window_name} #[fg=@color11,bg=@color3]'
'';
};
};
}