summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-11-07 20:15:19 -0500
committerBen Sima <ben@bsima.me>2022-11-07 20:18:22 -0500
commit69bbe8c4c6252baa74931e6ad28f788654776691 (patch)
tree7b9e259133449786bab16e81b79e6ebf5cf34a47 /lib
parent0e55fb101a9a6ec5d796c99278e90ca28dbf1647 (diff)
Trying to fix font sizing problems
Diffstat (limited to 'lib')
-rw-r--r--lib/common.nix6
-rw-r--r--lib/linux.nix15
2 files changed, 15 insertions, 6 deletions
diff --git a/lib/common.nix b/lib/common.nix
index 4ea80a7..b5f31dc 100644
--- a/lib/common.nix
+++ b/lib/common.nix
@@ -1,11 +1,11 @@
{ pkgs, lib, ... }:
let
+ fontSize = 12;
locale = "en_US.UTF-8";
gpgid = "66A6AD150399D970DCA4C4E6C8218B7D0BFDECCD";
homedir = builtins.getEnv "HOME";
-in
-{
+in {
nixpkgs.overlays = [ (import ../overlay.nix) ];
home = {
stateVersion = "18.09";
@@ -228,7 +228,7 @@ in
urxvt = let font = size: "xft:Fira Mono:size=${toString size}:ant"; in {
enable = true;
fonts = [
- (font 6)
+ (font fontSize)
"xft:Noto Emoji"
];
keybindings = {
diff --git a/lib/linux.nix b/lib/linux.nix
index f5bad73..fe135d3 100644
--- a/lib/linux.nix
+++ b/lib/linux.nix
@@ -1,6 +1,7 @@
{ pkgs, lib, ... }:
let
+ fontSize = 12;
homedir = builtins.getEnv "HOME";
hostname = lib.strings.removeSuffix "\n" (builtins.readFile /etc/hostname);
gpgid = "66A6AD150399D970DCA4C4E6C8218B7D0BFDECCD";
@@ -105,11 +106,19 @@ in
};
fonts.fontconfig.enable = true;
+ gtk.enable = false; # this fails because of some missing service file
+ gtk.font.name = "Fira Sans";
+ gtk.font.size = fontSize;
+ gtk.font.package = pkgs.fira;
+ gtk.theme.name = "Breeze";
+ gtk.iconTheme.name = "hicolor";
+ gtk.cursorTheme.name = "breeze_cursors";
+
xresources = {
properties = {
- "XTerm*font" = "-*-FiraMono-medium-r-normal--10-*-*-*-*-*-iso10646-1";
+ "XTerm*font" = "-*-FiraMono-medium-r-normal--${toString fontSize}-*-*-*-*-*-iso10646-1";
"XTerm*faceName" = "FireMono";
- "XTerm*faceSize" = "10";
+ "XTerm*faceSize" = toString fontSize;
"XTerm*termName" = "xterm-256color";
"XTerm*metaSendsEscape" = true;
"XTerm*utf8" = true;
@@ -142,7 +151,7 @@ in
config = {
"bar/top" = {
background = colors."${theme}".background;
- font-0 = "FiraSans:size=16";
+ font-0 = "FiraSans:size=${toString fontSize}";
font-1 = "Font Awesome 5:pixelsize=11;1";
font-2 = "MaterialIcons:size=10:antialias=false;2";
foreground = colors."${theme}".foreground;