rofi: migrate to font modules

This commit is contained in:
Aly Raffauf 2024-08-07 21:59:25 -04:00
parent 1cf84a98ea
commit c25993a37f
4 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ in {
};
main = {
font = "${cfg.theme.monospaceFont.name}:size=${cfg.theme.monospaceFont.size}";
font = "${cfg.theme.monospaceFont.name}:size=${toString cfg.theme.monospaceFont.size}";
icon-theme = "${config.gtk.iconTheme.name}";
layer = "overlay";
lines = 3;

View file

@ -11,7 +11,7 @@ in {
enable = true;
font = {
inherit (cfg.theme.monospaceFont) name;
name = cfg.theme.monospaceFont.name;
size = cfg.theme.monospaceFont.size + 1;
};

View file

@ -15,7 +15,7 @@ in {
programs.rofi = {
enable = true;
font = "${cfg.theme.monospaceFont.name} ${cfg.theme.monospaceFont.size}";
font = "${cfg.theme.monospaceFont.name} ${toString cfg.theme.monospaceFont.size}";
location = "center";
package = pkgs.rofi-wayland;

View file

@ -34,7 +34,7 @@ in {
userSettings = {
"diffEditor.ignoreTrimWhitespace" = false;
"editor.fontFamily" = "'${cfg.theme.monospaceFont.name} ${cfg.theme.monospaceFont.size}', 'monospace', monospace";
"editor.fontFamily" = "'${cfg.theme.monospaceFont.name} ${toString cfg.theme.monospaceFont.size}', 'monospace', monospace";
"editor.fontSize" = lib.mkDefault 14;
"editor.formatOnPaste" = true;
"editor.formatOnSave" = true;