Migrate Tmux config to Nix
This commit is contained in:
34
nix/modules/tmux.nix
Normal file
34
nix/modules/tmux.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ 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
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user