From 037b50d6087faf294c657cae944c4a10b6d5250c Mon Sep 17 00:00:00 2001 From: sefidel Date: Thu, 14 Sep 2023 22:48:51 +0900 Subject: feat(home): basic HiDPI support --- home/profiles/browsing/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'home/profiles/browsing') diff --git a/home/profiles/browsing/default.nix b/home/profiles/browsing/default.nix index 396cc70..42e85f0 100644 --- a/home/profiles/browsing/default.nix +++ b/home/profiles/browsing/default.nix @@ -5,6 +5,14 @@ in options.profiles.browsing = { enable = lib.mkEnableOption "A profile that enables a browser for the GUI and the terminal"; + + hiDpi = lib.mkOption { + type = lib.types.bool; + default = false; + description = '' + Tweak the browsers for better readability on HiDPI screens + ''; + }; }; config = lib.mkIf cfg.enable { @@ -36,6 +44,9 @@ in settings = import ./qutebrowser-settings.nix // { url.default_page = "https://searx.be"; url.start_pages = "https://searx.be"; + } // lib.optionalAttrs (cfg.hiDpi) { + qt.highdpi = true; + fonts.default_size = "12pt"; }; }; -- cgit 1.4.1