From 0f978bdc48e3d03e58decd2fc54dca3156d836ae Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 24 Apr 2019 13:52:47 +0200 Subject: Set Zathura font size depending on screen DPI --- gui/zathura.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gui/zathura.nix b/gui/zathura.nix index 3c4643f..491516a 100644 --- a/gui/zathura.nix +++ b/gui/zathura.nix @@ -1,11 +1,14 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: -{ +let + hidpi = config.custom.hidpi; + +in { programs.zathura = { enable = true; options = { - font = "Iosevka 14px"; + font = if hidpi then "Iosevka 28px" else "Iosevka 14px"; inputbar-bg = "#161616"; inputbar-fg = "#909737"; -- cgit v1.2.3