From cec64613630b68a8b0e286df862a92ce555a6bdc Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 1 Feb 2019 18:46:54 +0100 Subject: Add custom config key for enabling hidpi mode If this approach works as well as I hope it might become advantageous to nixify e.g. XMonad configuration. --- gui/gtk.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gui/gtk.nix') diff --git a/gui/gtk.nix b/gui/gtk.nix index 3aec4ea..abfc889 100644 --- a/gui/gtk.nix +++ b/gui/gtk.nix @@ -1,6 +1,7 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: let + hidpi = config.custom.hidpi; mypkgs = import (fetchTarball "https://pkgs.kummerlaender.eu/nixexprs.tar.gz") { }; in { gtk = { @@ -27,7 +28,7 @@ in { txt_fg = "101010"; gradient = 0.0; roundness = 0; - spacing = 5; + spacing = if hidpi then 5 else 1; wm_border_focus = "909636"; wm_border_unfocus = "909636"; gtk3_generate_dark = false; -- cgit v1.2.3