Change font variables and simplify and standardize logic and formatting

This commit is contained in:
Bun 2025-05-08 13:08:32 -04:00
parent 01d16e03c8
commit 74b2840bf7
9 changed files with 33 additions and 27 deletions

View file

@ -6,7 +6,7 @@
settings = { settings = {
main = { main = {
term = "xterm-256color"; term = "xterm-256color";
font = "${config.look.fonts.nerd}:size=14.7"; font = "${config.look.fonts.mono}:size=14.7";
}; };
colors = { colors = {
alpha = "0.85"; alpha = "0.85";

View file

@ -123,7 +123,7 @@
# Fonts # Fonts
"font.name.serif.x-western" = config.look.fonts.main; "font.name.serif.x-western" = config.look.fonts.main;
"font.name.sans-serif.x-western" = config.look.fonts.main; "font.name.sans-serif.x-western" = config.look.fonts.main;
"font.name.monospace.x-western" = config.look.fonts.nerd; "font.name.monospace.x-western" = config.look.fonts.mono;
# Theming and visibility # Theming and visibility
"browser.aboutConfig.showWarning" = false; "browser.aboutConfig.showWarning" = false;

View file

@ -2,9 +2,7 @@
{ {
config = lib.mkIf config.home.desktop.enable { config = lib.mkIf config.home.desktop.enable {
dconf.settings = { dconf.settings = {
"org/gnome/desktop/interface/color-scheme" = { "org/gnome/desktop/interface/color-scheme".color-scheme = "prefer-dark";
color-scheme = "prefer-dark";
};
"org/virt-manager/virt-manager/connections" = { "org/virt-manager/virt-manager/connections" = {
autoconnect = [ "qemu:///system" ]; autoconnect = [ "qemu:///system" ];
uris = [ "qemu:///system" ]; uris = [ "qemu:///system" ];

View file

@ -1,21 +1,7 @@
{ config, lib, pkgsStable, ... }: { ... }:
{ {
config = lib.mkIf config.home.desktop.enable { imports = [
home.packages = with pkgsStable; [ ./fontconfig
liberation_ttf ./packages
twitter-color-emoji ];
noto-fonts
sarasa-gothic
ubuntu_font_family
(nerdfonts.override { fonts = [ "UbuntuMono" ]; })
];
fonts.fontconfig = {
enable = true;
defaultFonts = {
sansSerif = [ "Ubuntu" ];
monospace = [ "UbuntuMono Nerd Font Mono" ];
emoji = [ "Twitter Color Emoji" ];
};
};
};
} }

View file

@ -0,0 +1,11 @@
{ config, ... }:
{
fonts.fontconfig = {
enable = config.home.desktop.enable;
defaultFonts = {
sansSerif = [ config.look.fonts.main ];
monospace = [ config.look.fonts.mono ];
emoji = [ "Twitter Color Emoji" ];
};
};
}

View file

@ -0,0 +1,11 @@
{ config, lib, pkgsStable, ... }:
{
home.packages = lib.mkIf config.home.desktop.enable (with pkgsStable; [
liberation_ttf
twitter-color-emoji
noto-fonts
sarasa-gothic
ubuntu_font_family
(nerdfonts.override { fonts = [ "UbuntuMono" ]; })
]);
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, ... }:
{ {
imports = [ imports = [
./bookmarks ./bookmarks

View file

@ -6,6 +6,6 @@
config.look.fonts = { config.look.fonts = {
main = "Ubuntu"; main = "Ubuntu";
nerd = "UbuntuMono Nerd Font"; mono = "UbuntuMono Nerd Font";
}; };
} }

View file

@ -300,7 +300,7 @@
border: 0; border: 0;
border-radius: 0; border-radius: 0;
min-height: 0; min-height: 0;
font-family: ${config.look.fonts.main}, ${config.look.fonts.nerd}; font-family: ${config.look.fonts.main}, ${config.look.fonts.mono};
font-size: 15.5px; font-size: 15.5px;
color: #${config.look.colors.text}; color: #${config.look.colors.text};
} }