summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-08-03 11:46:05 -0400
committerBen Sima <ben@bsima.me>2024-08-14 13:57:56 -0400
commit994f29c31d9329f627c5a588cdebe76606e4292f (patch)
treeccb642ab82f271f60ed8ca15ad36fcc293a932d4
parent2384b5314eb2fb961bd57d6fb6c5c78cab31dd1c (diff)
messing with xterm and font sizes
-rw-r--r--lib/common.nix2
-rw-r--r--lib/const.nix2
-rw-r--r--lib/linux.nix14
-rw-r--r--lib/urxvt.nix12
4 files changed, 18 insertions, 12 deletions
diff --git a/lib/common.nix b/lib/common.nix
index f9dfbf3..dd81d81 100644
--- a/lib/common.nix
+++ b/lib/common.nix
@@ -15,7 +15,7 @@ in {
LANGUAGE = locale;
PATH = "${homedir}/bin:${homedir}/.local/bin:$PATH";
PAGER = "less"; # "bat --theme=ansi";
- XTERM_LOCALE = locale;
+ #XTERM_LOCALE = locale;
PYTHONSTARTUP = "${homedir}/.pythonrc";
FD_OPTIONS = "--follow --exclude .git";
diff --git a/lib/const.nix b/lib/const.nix
index be27d9d..3549024 100644
--- a/lib/const.nix
+++ b/lib/const.nix
@@ -1,5 +1,5 @@
{
- fontSize = 12;
+ fontSize = 10;
homedir = builtins.getEnv "HOME";
gpgid = "66A6AD150399D970DCA4C4E6C8218B7D0BFDECCD";
}
diff --git a/lib/linux.nix b/lib/linux.nix
index ba0fbdf..aedb46f 100644
--- a/lib/linux.nix
+++ b/lib/linux.nix
@@ -83,7 +83,7 @@ in
xlayoutdisplay
xorg.xmodmap
xsel
- xterm
+ #xterm
yank
youtube-dl
zathura
@@ -105,12 +105,12 @@ in
xresources = {
properties = {
- "XTerm*font" = "-*-FiraMono-medium-r-normal--${toString fontSize}-*-*-*-*-*-iso10646-1";
- "XTerm*faceName" = "FireMono";
- "XTerm*faceSize" = toString fontSize;
- "XTerm*termName" = "xterm-256color";
- "XTerm*metaSendsEscape" = true;
- "XTerm*utf8" = true;
+ #"XTerm*font" = "-*-FiraMono-medium-r-normal--${toString fontSize}-*-*-*-*-*-iso10646-1";
+ #"XTerm*faceName" = "FireMono";
+ #"XTerm*faceSize" = toString fontSize;
+ #"XTerm*termName" = "xterm-256color";
+ #"XTerm*metaSendsEscape" = true;
+ #"XTerm*utf8" = true;
#"Xautolock.time:" = 1;
#"Xautolock.locker:" = "xlock";
#"Xautolock.corners:" = "+0-0";
diff --git a/lib/urxvt.nix b/lib/urxvt.nix
index 7fe2351..a25bc68 100644
--- a/lib/urxvt.nix
+++ b/lib/urxvt.nix
@@ -1,9 +1,15 @@
{ ... }:
let
- #inherit (import ./const.nix) fontSize;
- fontSize = 10;
+ inherit (import ./const.nix) fontSize;
+ #fontSize = 10;
+ #font = name: size: "xft:${name}:size=${toString size}:ant";
+
+ # why doesn't font size work right? It is always either too large or too
+ # small... what if I just don't set font size?
+ # ->
+ font = name: size: "xft:${name}:ant";
in {
- programs.urxvt = let font = name: size: "xft:${name}:size=${toString size}:ant"; in {
+ programs.urxvt = {
enable = true;
fonts = [
(font "Fira Code" fontSize)