2024-07-08 09:00:43 +00:00
|
|
|
{ lib, config, pkgs, ... }:
|
2024-05-30 21:01:29 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.snowhawk.tmux;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.snowhawk.tmux = {
|
|
|
|
enable = lib.mkEnableOption "tmux";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.tmux = {
|
|
|
|
enable = true;
|
2024-07-08 09:00:43 +00:00
|
|
|
shell = "${pkgs.fish}/bin/fish";
|
|
|
|
mouse = true;
|
|
|
|
baseIndex = 1;
|
|
|
|
terminal = "xterm-256color";
|
|
|
|
newSession = true;
|
|
|
|
|
|
|
|
plugins = with pkgs; [
|
|
|
|
{
|
|
|
|
plugin = tmuxPlugins.rose-pine;
|
|
|
|
extraConfig = ''
|
|
|
|
set -g @rose_pine_variant 'main' # Options are 'main', 'moon' or 'dawn'
|
|
|
|
set -g @rose_pine_host 'on'
|
|
|
|
set -g @rose_pine_date_time '%c' # %c is a good value but
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
plugin = tmuxPlugins.vim-tmux-navigator;
|
|
|
|
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
set-option -g renumber-windows on
|
|
|
|
|
|
|
|
bind '"' split-window -v -c "#{pane_current_path}"
|
|
|
|
bind % split-window -h -c "#{pane_current_path}"
|
|
|
|
|
|
|
|
bind-key -r f run-shell "tmux neww ~/.user/scripts/tmux-sessionizer"
|
|
|
|
'';
|
2024-05-30 21:01:29 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|