From d4f7650cd0735d1fe9173530cc31c24b65ed44ff Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 3 Jun 2024 20:50:58 +0530 Subject: global/font: init --- home/wayland/modules/zathura.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'home/wayland/modules/zathura.nix') diff --git a/home/wayland/modules/zathura.nix b/home/wayland/modules/zathura.nix index 8437e80..9a013da 100644 --- a/home/wayland/modules/zathura.nix +++ b/home/wayland/modules/zathura.nix @@ -1,4 +1,9 @@ -{ lib, ... }: { +{ config, lib, ... }: let + font = config.global.font.sans.name + + " " + + lib.optionalString (config.global.font.sans.size != null) + (builtins.toString config.global.font.sans.size); +in { programs.zathura = { enable = true; @@ -7,7 +12,7 @@ "[fullscreen] f" = "toggle_fullscreen"; }; options = { - font = lib.mkDefault "Sans"; + inherit font; statusbar-basename = true; selection-clipboard = "clipboard"; database = "sqlite"; -- cgit v1.2.3