use hack for desktop font

This commit is contained in:
Noah Masur 2022-05-07 09:36:07 -04:00
parent 4540327cb8
commit 6b14485632
3 changed files with 10 additions and 18 deletions

View File

@ -6,9 +6,9 @@ in {
config = lib.mkIf config.gui.enable { config = lib.mkIf config.gui.enable {
fonts.fonts = with pkgs; fonts.fonts = with pkgs; [
[ victor-mono # Used for Vim and Terminal
pkgs.victor-mono # Used for Vim and Terminal (nerdfonts.override { fonts = [ "Hack" ]; }) # For Polybar, Rofi
]; ];
fonts.fontconfig.defaultFonts.monospace = [ fontName ]; fonts.fontconfig.defaultFonts.monospace = [ fontName ];
@ -18,7 +18,8 @@ in {
# style = "Regular"; # style = "Regular";
# size = 11.0; # size = 11.0;
}; };
programs.rofi.font = "${fontName} 14"; services.polybar.config."bar/main".font-0 = "Hack Nerd Font:size=10;2";
programs.rofi.font = "Hack Nerd Font 14";
}; };
}; };

View File

@ -2,10 +2,6 @@
config = lib.mkIf config.services.xserver.enable { config = lib.mkIf config.services.xserver.enable {
# Used for icons
fonts.fonts = with pkgs;
[ (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) ];
home-manager.users.${config.user} = { home-manager.users.${config.user} = {
services.polybar = { services.polybar = {
@ -26,7 +22,7 @@
# offset-y = "5%"; # offset-y = "5%";
# dpi = 96; # dpi = 96;
background = config.gui.colorscheme.base00; background = config.gui.colorscheme.base00;
foreground = config.gui.colorscheme.base07; foreground = config.gui.colorscheme.base05;
line-size = "3pt"; line-size = "3pt";
border-top-size = 0; border-top-size = 0;
border-right-size = 0; border-right-size = 0;
@ -38,11 +34,6 @@
module-margin = 1; module-margin = 1;
# separator = "|"; # separator = "|";
# separator-foreground = colors.disabled; # separator-foreground = colors.disabled;
font-0 = "JetBrainsMono Nerd Font:size=10;2";
# font-0 = "monospace;2";
# font-1 = "Font Awesome 5 Free:size=10";
# font-2 = "Font Awesome 5 Free Solid:size=10";
# font-3 = "Font Awesome 5 Brands:size=10";
modules-left = "xworkspaces"; modules-left = "xworkspaces";
modules-center = "xwindow"; modules-center = "xwindow";
modules-right = "pulseaudio date"; modules-right = "pulseaudio date";
@ -90,7 +81,7 @@
format-volume = "<ramp-volume> <label-volume>"; format-volume = "<ramp-volume> <label-volume>";
# format-volume-background = colors.background; # format-volume-background = colors.background;
# label-volume-background = colors.background; # label-volume-background = colors.background;
format-volume-foreground = config.gui.colorscheme.base07; format-volume-foreground = config.gui.colorscheme.base0B;
label-volume = "%percentage%%"; label-volume = "%percentage%%";
label-muted = " ---"; label-muted = " ---";
label-muted-foreground = config.gui.colorscheme.base03; label-muted-foreground = config.gui.colorscheme.base03;
@ -145,7 +136,7 @@
date = "%l:%M %p"; date = "%l:%M %p";
date-alt = "%Y-%m-%d %H:%M:%S"; date-alt = "%Y-%m-%d %H:%M:%S";
label = "%date%"; label = "%date%";
# label-foreground = config.theme.colors.normal.yellow; label-foreground = config.gui.colorscheme.base0A;
# format-background = colors.background; # format-background = colors.background;
}; };
"settings" = { "settings" = {

View File

@ -67,7 +67,7 @@
placeholder-color = mkLiteral config.gui.colorscheme.base03; placeholder-color = mkLiteral config.gui.colorscheme.base03;
expand = true; expand = true;
horizontal-align = "0"; horizontal-align = "0";
placeholder = "Search Applications"; placeholder = "Launch Program";
padding = mkLiteral "0px 0px 0px 5px"; padding = mkLiteral "0px 0px 0px 5px";
blink = true; blink = true;
}; };