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/rofi.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gui/rofi.nix') diff --git a/gui/rofi.nix b/gui/rofi.nix index 19749f5..034abdc 100644 --- a/gui/rofi.nix +++ b/gui/rofi.nix @@ -1,6 +1,11 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: -{ +let + hidpiExtraConfig = if config.custom.hidpi then '' + rofi.dpi: 160 + '' else ""; + +in { programs.rofi = { enable = true; location = "top"; @@ -52,6 +57,7 @@ rofi.combi-modi: windowcd,drun,ssh rofi.terminal: kitty rofi.ssh-command: {terminal} {ssh-client} {host} + ${hidpiExtraConfig} ''; }; } -- cgit v1.2.3