about summary refs log tree commit diff
path: root/home/profiles/gui/config/waybar/style.nix
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-09-14 22:48:51 +0900
committersefidel <contact@sefidel.net>2023-09-14 22:48:51 +0900
commit037b50d6087faf294c657cae944c4a10b6d5250c (patch)
tree38d01e93782b5f2fa140e62e6bcaf4a508f7b21c /home/profiles/gui/config/waybar/style.nix
parent75b3280002b55e0be4ac97fb180af2248c710106 (diff)
downloadnixrc-037b50d6087faf294c657cae944c4a10b6d5250c.tar.gz
nixrc-037b50d6087faf294c657cae944c4a10b6d5250c.zip
feat(home): basic HiDPI support
Diffstat (limited to 'home/profiles/gui/config/waybar/style.nix')
-rw-r--r--home/profiles/gui/config/waybar/style.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/home/profiles/gui/config/waybar/style.nix b/home/profiles/gui/config/waybar/style.nix
index d8714ed..5009ccb 100644
--- a/home/profiles/gui/config/waybar/style.nix
+++ b/home/profiles/gui/config/waybar/style.nix
@@ -1,13 +1,16 @@
-{ neotheme }:
+{ config, neotheme }:
 
 with neotheme.colors;
 
+let
+  guiCfg = config.profiles.gui;
+in
 ''
   * {
     border: none;
     border-radius: 0;
-    font-family: "Dina, JetBrainsMono Nerd Font";
-    font-size: 12px;
+    font-family: "${guiCfg.font.name}, JetBrainsMono Nerd Font";
+    font-size: ${toString guiCfg.font.pixelSize}px;
     min-height: 0;
   }