Librewolf should respect font + changed to intel font

This commit is contained in:
Emmet 2023-09-23 14:12:01 -05:00
parent 67c96dc3bd
commit 6034848fa6
2 changed files with 7 additions and 5 deletions

View file

@ -22,8 +22,8 @@
editor = "emacsclient"; # Default editor;
defaultRoamDir = "Personal.p"; # Default org roam directory relative to ~/Org
term = "alacritty"; # Default terminal command;
font = "Inconsolata"; # Selected font
fontPkg = pkgs.inconsolata; # Font package
font = "Intel One Mono"; # Selected font
fontPkg = pkgs.intel-one-mono; # Font package
# editor spawning translator
# generates a command that can be used to spawn editor inside a gui

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, wmType, ... }:
{ config, lib, pkgs, wmType, font, ... }:
{
# Module installing librewolf as default browser
@ -11,7 +11,8 @@
{ DEFAULT_BROWSER = "${pkgs.librewolf}/bin/librewolf";};
home.file.".librewolf/librewolf.overrides.cfg".text = ''
defaultPref("font.name.serif.x-western","Inconsolata");
defaultPref("font.name.serif.x-western","''+font+''");
defaultPref("font.size.variable.x-western",20);
defaultPref("browser.toolbars.bookmarks.visibility","always");
defaultPref("privacy.resisttFingerprinting.letterboxing", true);
@ -21,7 +22,8 @@
defaultPref("privacy.clearOnShutdown.cookies",true);
defaultPref("gfx.webrender.software.opengl",false);
defaultPref("webgl.disabled",true);
pref("font.name.serif.x-western","Inconsolata");
pref("font.name.serif.x-western","''+font+''");
pref("font.size.variable.x-western",20);
pref("browser.toolbars.bookmarks.visibility","always");
pref("privacy.resisttFingerprinting.letterboxing", true);