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

26 lines
621 B
Nix
Raw Normal View History

{ pkgs, lib, inputs, config, osConfig, ... }:
{
programs.tmux = {
enable = true;
terminal = "tmux-256color";
keyMode = "vi";
mouse = true;
2024-03-27 02:23:55 +00:00
prefix = "C-a";
escapeTime = 1;
2024-02-06 06:40:43 +00:00
sensibleOnTop = false;
extraConfig = ''
set -g status-right '"#T"'
2024-04-01 05:40:51 +00:00
set-hook -g session-created 'set -F status-style "#{?#{==:#{DANGER},},bg=#262626 fg=#cccccc,bg=#e45555 fg=#000000}"'
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}"'
2024-03-27 02:23:55 +00:00
set -ga terminal-overrides ",alacritty*:RGB"
'';
};
}