From 57f4ed5e414f5df18ffeeebbc55fde249720b473 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 6 Jul 2021 09:29:48 +0200 Subject: workstation: Advertise XTerm true color capability So far, the TERM environment variable has been set to xterm-256color, but in reality newer XTerm versions already supported 24bit colors so setting this to xterm-direct results in using the right terminfo entry for our terminal. To make sure this is really the case, let's explicitly set directColor to true, because while it is enabled in nixpkgs by default it is however a compile-time option and could possibly be disabled. Additionally, Vim is now looking pretty gruesome because my colorscheme so far has used colors for 16-color terminals and I don't particularly like the GUI colors. I added a few fixups for the color scheme to address that. Signed-off-by: aszlig --- modules/user/aszlig/profiles/workstation/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix index 24105ab1..d8f18f9f 100644 --- a/modules/user/aszlig/profiles/workstation/default.nix +++ b/modules/user/aszlig/profiles/workstation/default.nix @@ -171,7 +171,8 @@ in { displayManager.defaultSession = "none+i3"; displayManager.sessionCommands = '' ${pkgs.xorg.xrdb}/bin/xrdb "${pkgs.writeText "xrdb.config" '' - XTerm*termName: xterm-256color + XTerm*termName: xterm-direct + XTerm*directColor: true XTerm*faceName: MxPlus IBM VGA 8x16 XTerm*faceSize: 12 XTerm*renderFont: true -- cgit 1.4.1