Skip to content

💡 Font config is too hard-wired #10

@popey

Description

@popey

Pre-submission checklist

  • I have searched existing issues and this feature hasn't been requested previously
  • I have considered if this fits the project's scope and goals

Problem or Use Case

The configuration currently has a font hard-wired through many files. This should IMO be a variable. For me to switch from Fira Code to Blex, I had to edit quite a few files.

Proposed Solution

This should be a configuration option (likely a pair of options) to specify the font package name and full name.

Feature Type

Quality of life improvement

Priority

Must Have

Alternative Solutions

No response

Examples or References

No response

Additional Context

grep -r Fira *
home-manager/desktop/apps/terminal/alacritty.nix:            family = "FiraCode Nerd Font Mono";
home-manager/desktop/apps/terminal/alacritty.nix:            family = "FiraCode Nerd Font Mono";
home-manager/desktop/apps/terminal/alacritty.nix:            family = "FiraCode Nerd Font Mono";
home-manager/desktop/apps/terminal/alacritty.nix:            family = "FiraCode Nerd Font Mono";
home-manager/desktop/apps/terminal/default.nix:    "XTerm*faceName" = "FiraCode Nerd Font Mono:size=14:style=Medium:antialias=true";
home-manager/desktop/apps/terminal/default.nix:    "XTerm*boldFont" = "FiraCode Nerd Font Mono:size=14:style=Bold:antialias=true";
home-manager/desktop/apps/terminal/foot.nix:          font = "FiraCode Nerd Font Mono:size=16";
home-manager/desktop/apps/terminal/kitty.nix:        name = "FiraCode Nerd Font Mono";
home-manager/desktop/compositor/components/fuzzel/default.nix:          font = "FiraCode Nerd Font Mono:size=${fontSize}";
home-manager/desktop/compositor/components/hyprlock/default.nix:            font_family = "FiraCode Nerd Font Mono Bold";
home-manager/desktop/compositor/components/hyprlock/default.nix:            font_family = "FiraCode Nerd Font Mono Bold";
home-manager/desktop/compositor/components/hyprlock/default.nix:            font_family = "FiraCode Nerd Font Mono Bold";
home-manager/desktop/compositor/components/hyprlock/default.nix:            font_family = "FiraCode Nerd Font Mono Bold";
home-manager/desktop/compositor/components/hyprlock/default.nix:            font_family = "FiraCode Nerd Font Mono Bold";
home-manager/desktop/compositor/components/hyprlock/default.nix:            font_family = "FiraCode Nerd Font Propo";
home-manager/desktop/compositor/components/swaync/default.nix:          font-family: "FiraCode Nerd Font Mono";
home-manager/desktop/compositor/components/waybar/default.nix:          font-family: FiraCode Nerd Font Mono;
home-manager/desktop/compositor/components/wlogout/default.nix:            font-family: FiraCode Nerd Font Mono, monospace;
home-manager/desktop/default.nix:        monospace-font-name = "FiraCode Nerd Font Mono Medium 13";
home-manager/fonts/default.nix:          "FiraCode Nerd Font Mono"
system-manager/fonts.nix:      "L+ /usr/local/share/fonts/noughty/FiraCode - - - - ${pkgs.nerd-fonts.fira-code}/share/fonts/truetype/NerdFonts/FiraCode"
system-manager/kmscon.nix:    font-name=FiraCode Nerd Font Mono

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions