fix terminal config

This commit is contained in:
Fabian Montero 2024-11-20 16:48:27 -06:00
parent 1565c00bf8
commit 85dfcfdb72
Signed by: fabian
GPG key ID: 1FFAC35E1798174F

View file

@ -7,29 +7,26 @@
with lib; let with lib; let
cfg = config.local.apps.terminal; cfg = config.local.apps.terminal;
in { in {
options.local.apps.terminal.enable = mkEnableOption "Terminal emulator settings"; kitty = {
config.programs = mkIf cfg.enable { enable = true;
kitty = { extraConfig = import ./kitty.conf.nix;
enable = true; };
extraConfig = import ./kitty.conf.nix;
};
tmux = { tmux = {
enable = true; enable = true;
aggressiveResize = true; aggressiveResize = true;
clock24 = true; clock24 = true;
escapeTime = 10; escapeTime = 10;
terminal = "xterm-256color"; terminal = "xterm-256color";
keyMode = "emacs"; keyMode = "emacs";
extraConfig = '' extraConfig = ''
set -g mouse on set -g mouse on
set -ga update-environment " LIFT_PID" set -ga update-environment " LIFT_PID"
set -g set-titles on set -g set-titles on
set -g renumber-windows on set -g renumber-windows on
set -sa terminal-overrides ',xterm-termite:RGB' set -sa terminal-overrides ',xterm-termite:RGB'
set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,} %H:%M %d-%b-%y" set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,} %H:%M %d-%b-%y"
''; '';
};
}; };
} }