aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-04-24 13:52:47 +0200
committerAdrian Kummerlaender2019-04-24 13:52:47 +0200
commit0f978bdc48e3d03e58decd2fc54dca3156d836ae (patch)
tree3378b6540ccc6cba3f9bd33b57637e59e4b94d14
parentc7e8420e8f2951fe260614c9c3aee7b0dd1f394d (diff)
downloadnixos_home-0f978bdc48e3d03e58decd2fc54dca3156d836ae.tar
nixos_home-0f978bdc48e3d03e58decd2fc54dca3156d836ae.tar.gz
nixos_home-0f978bdc48e3d03e58decd2fc54dca3156d836ae.tar.bz2
nixos_home-0f978bdc48e3d03e58decd2fc54dca3156d836ae.tar.lz
nixos_home-0f978bdc48e3d03e58decd2fc54dca3156d836ae.tar.xz
nixos_home-0f978bdc48e3d03e58decd2fc54dca3156d836ae.tar.zst
nixos_home-0f978bdc48e3d03e58decd2fc54dca3156d836ae.zip
Set Zathura font size depending on screen DPI
-rw-r--r--gui/zathura.nix9
1 files 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";