mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 10:11:54 -05:00
rofi: migrate to font modules
This commit is contained in:
parent
1cf84a98ea
commit
c25993a37f
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue