summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-03-22 12:16:49 -0700
committerBen Sima <ben@bsima.me>2019-03-22 12:19:16 -0700
commit9ece05be716c92b451ff84952f389f1ca8d30abd (patch)
tree2583d02aa17c15d3ddfeb858eac93ebf9323c357
parent427948ea63bc17cf001e7770d9aa321c5696380d (diff)
Trying to fix xterm UTF8 encoding
This makes it slightly better but doesn't seem to totally fix it. Every time I open a terminal, I have to ctrl+right-click and select "UTF-8 Encoding". Not sure how to make this setting persistent.
-rw-r--r--common.nix1
-rw-r--r--linux.nix5
2 files changed, 4 insertions, 2 deletions
diff --git a/common.nix b/common.nix
index b0af3b8..e872492 100644
--- a/common.nix
+++ b/common.nix
@@ -12,6 +12,7 @@ in
PATH = "${homedir}/bin:${homedir}/.cabal/bin:${homedir}/.local/bin:$PATH";
PAGER = "less";
LEDGER_FILE = "${homedir}/.hledger.journal";
+ XTERM_LOCALE = "en_US.UTF-8";
};
keyboard.options = [ "caps:ctrl_modifier" ];
file = {
diff --git a/linux.nix b/linux.nix
index 5934f7d..c7b2cce 100644
--- a/linux.nix
+++ b/linux.nix
@@ -9,11 +9,12 @@ in
xresources = {
properties = {
- "XTerm*font" = "*-fixed-*-*-*-*-*";
- "XTerm*faceName" = "mononoki";
+ "XTerm*font" = "-*-terminus-medium-r-normal--18-*-*-*-*-*-iso10646-1";
+ "XTerm*faceName" = "Terminus";
"XTerm*faceSize" = "10";
"XTerm*termName" = "xterm-256color";
"XTerm*metaSendsEscape" = true;
+ "XTerm*utf8" = true;
};
extraConfig = builtins.readFile(solarized-xresources + "/Xresources.light");
};