about summary refs log tree commit diff
path: root/modules/user/aszlig/services/i3
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2022-09-03 06:06:28 +0200
committeraszlig <aszlig@nix.build>2022-09-05 18:57:38 +0200
commitc88fd9eaa12c8a3c06502b09c2056d3c91421952 (patch)
treeb0cff3ad7ede1beed2aca146d3172e76740f3642 /modules/user/aszlig/services/i3
parent159f4c8d9c127f51607bf529bf9810c4f1aa3610 (diff)
Use a font point size of 10 on hidpi
With my new laptop, a font size of 12pt is rather large and given that
hidpi displays usually have a quite large resolution (the name might
hint at that), we don't necessarily need to use embedded bitmaps anymore
which was one of the reasons why I used a point size of 12.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'modules/user/aszlig/services/i3')
-rw-r--r--modules/user/aszlig/services/i3/default.nix2
-rw-r--r--modules/user/aszlig/services/i3/i3.conf2
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/user/aszlig/services/i3/default.nix b/modules/user/aszlig/services/i3/default.nix
index d11140dd..503b192b 100644
--- a/modules/user/aszlig/services/i3/default.nix
+++ b/modules/user/aszlig/services/i3/default.nix
@@ -117,6 +117,8 @@ in
         inherit (pkgs.xorg) xsetroot;
         inherit wsConfig barConfig;
 
+        faceSize = if config.hardware.video.hidpi.enable then 10 else 12;
+
         # XXX: Decouple this by making the i3 bindsym directives available to
         #      the NixOS module system.
         flameshot = config.vuizvui.user.aszlig.programs.flameshot.package;
diff --git a/modules/user/aszlig/services/i3/i3.conf b/modules/user/aszlig/services/i3/i3.conf
index 1f5246fe..38514c2b 100644
--- a/modules/user/aszlig/services/i3/i3.conf
+++ b/modules/user/aszlig/services/i3/i3.conf
@@ -2,7 +2,7 @@
 set $mod Mod4
 
 # we want to have a VT-style font :-)
-font pango:MxPlus IBM VGA 8x16 12
+font pango:MxPlus IBM VGA 8x16 @faceSize@
 
 # Use Mouse+$mod to drag floating windows to their wanted position
 floating_modifier $mod