NixOS-Configuration/common/users/cameron/home-manager/tmux.nix

28 lines
537 B
Nix
Raw Normal View History

{ pkgs, lib, inputs, config, osConfig, ... }:
{
programs.tmux = {
enable = true;
terminal = "tmux-256color";
keyMode = "vi";
mouse = true;
2024-02-06 06:40:43 +00:00
sensibleOnTop = false;
extraConfig = ''
set -g prefix C-a
set -g prefix2 C-k
set -g status-right '"#T"'
set -g status-style 'bg=#262626 fg=#cccccc'
set-hook -g window-linked 'set -F status "#{?#{==:#{session_windows},1},off,on}"'
set-hook -g window-unlinked 'set -F status "#{?#{==:#{session_windows},1},off,on}"'
set -ga terminal-overrides ",*:Tc"
'';
};
}