Files
dotfiles/nix/modules/tmux.nix

35 lines
668 B
Nix

{ config, lib, pkgs, ... }:
{
programs.tmux = {
enable = true;
mouse = true;
shortcut = "s";
baseIndex = 1;
keyMode = "vi";
customPaneNavigationAndResize = true;
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
'';
};
}