56 lines
2.4 KiB
Nix
56 lines
2.4 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
programs.tmux = {
|
|
enable = true;
|
|
baseIndex = 1;
|
|
historyLimit = 50000;
|
|
keyMode = "emacs";
|
|
mouse = false;
|
|
plugins = with pkgs.tmuxPlugins; [
|
|
yank
|
|
{
|
|
plugin = resurrect;
|
|
extraConfig = "set -g @resurrect-capture-pane-contents 'on'";
|
|
}
|
|
{
|
|
plugin = continuum;
|
|
extraConfig = "set -g @continnum-restore 'on'";
|
|
}
|
|
];
|
|
prefix = "C-f";
|
|
sensibleOnTop = true;
|
|
terminal = "foot";
|
|
extraConfig = ''
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
bind u attach-session -c "#{pane_current_path}"
|
|
bind v split-window -c "#{pane_current_path}" -h
|
|
bind s split-window -c "#{pane_current_path}" -v
|
|
|
|
# Nightfox colors for Tmux
|
|
# Style: nightfox
|
|
# Upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/nightfox/nightfox.tmux
|
|
set -g mode-style "fg=#131a24,bg=#aeafb0"
|
|
set -g message-style "fg=#131a24,bg=#aeafb0"
|
|
set -g message-command-style "fg=#131a24,bg=#aeafb0"
|
|
set -g pane-border-style "fg=#aeafb0"
|
|
set -g pane-active-border-style "fg=#719cd6"
|
|
set -g status "on"
|
|
set -g status-justify "left"
|
|
set -g status-style "fg=#aeafb0,bg=#131a24"
|
|
set -g status-left-length "100"
|
|
set -g status-right-length "100"
|
|
set -g status-left-style NONE
|
|
set -g status-right-style NONE
|
|
set -g status-left "#[fg=#131a24,bg=#719cd6,bold] #S #[fg=#719cd6,bg=#131a24,nobold,nounderscore,noitalics]"
|
|
set -g status-right "#[fg=#131a24,bg=#131a24,nobold,nounderscore,noitalics]#[fg=#719cd6,bg=#131a24] #{prefix_highlight} #[fg=#aeafb0,bg=#131a24,nobold,nounderscore,noitalics]#[fg=#131a24,bg=#aeafb0] %Y-%m-%d %I:%M %p #[fg=#719cd6,bg=#aeafb0,nobold,nounderscore,noitalics]#[fg=#131a24,bg=#719cd6,bold] #h "
|
|
setw -g window-status-activity-style "underscore,fg=#71839b,bg=#131a24"
|
|
setw -g window-status-separator ""
|
|
setw -g window-status-style "NONE,fg=#71839b,bg=#131a24"
|
|
setw -g window-status-format "#[fg=#131a24,bg=#131a24,nobold,nounderscore,noitalics]#[default] #I #W #F #[fg=#131a24,bg=#131a24,nobold,nounderscore,noitalics]"
|
|
setw -g window-status-current-format "#[fg=#131a24,bg=#aeafb0,nobold,nounderscore,noitalics]#[fg=#131a24,bg=#aeafb0,bold] #I #W #F #[fg=#aeafb0,bg=#131a24,nobold,nounderscore,noitalics]"
|
|
'';
|
|
};
|
|
}
|