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 = { 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}"; icon-theme = "${config.gtk.iconTheme.name}";
layer = "overlay"; layer = "overlay";
lines = 3; lines = 3;

View file

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

View file

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

View file

@ -34,7 +34,7 @@ in {
userSettings = { userSettings = {
"diffEditor.ignoreTrimWhitespace" = false; "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.fontSize" = lib.mkDefault 14;
"editor.formatOnPaste" = true; "editor.formatOnPaste" = true;
"editor.formatOnSave" = true; "editor.formatOnSave" = true;