Files
dotfiles/nix/modules/tmux.nix
2025-03-28 23:13:16 -07:00

39 lines
792 B
Nix

{ config, lib, pkgs, ... }:
{
programs.tmux = {
enable = true;
mouse = false;
shell = "${pkgs.fish}/bin/fish";
shortcut = "s";
baseIndex = 1;
keyMode = "vi";
customPaneNavigationAndResize = true;
terminal = "xterm-256color";
plugins = with pkgs; [
tmuxPlugins.sensible
];
extraConfig = ''
# Splitting panes
bind - split-window -v -c '#{pane_current_path}'
bind \\ split-window -h -c '#{pane_current_path}'
# New window at current path
bind c new-window -c '#{pane_current_path}'
# Break pane into new window
bind b break-pane -d
# Status bar themeing
set-option -g status-bg '#666666'
set-option -g status-fg '#aaaaaa'
# Toggle mouse-mode
bind m set-window-option mouse
set-option -g default-command ${pkgs.fish}/bin/fish
'';
};
}