From aa7459de79f30abe8657296c2a5f805483aaad3d Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 9 Jun 2021 21:10:11 +0200 Subject: Update rofi config --- gui/rofi.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'gui') diff --git a/gui/rofi.nix b/gui/rofi.nix index 034abdc..99826e4 100644 --- a/gui/rofi.nix +++ b/gui/rofi.nix @@ -1,9 +1,9 @@ { config, pkgs, ... }: let - hidpiExtraConfig = if config.custom.hidpi then '' - rofi.dpi: 160 - '' else ""; + hidpiExtraConfig = if config.custom.hidpi then { + dpi = 160; + } else { }; in { programs.rofi = { @@ -52,12 +52,11 @@ in { }; }; - extraConfig = '' - rofi.modi: combi - rofi.combi-modi: windowcd,drun,ssh - rofi.terminal: kitty - rofi.ssh-command: {terminal} {ssh-client} {host} - ${hidpiExtraConfig} - ''; + extraConfig = { + modi = "combi"; + combi-modi = "windowcd,drun,ssh"; + terminal = "kitty"; + ssh-command = "{terminal} {ssh-client} {host}"; + } // hidpiExtraConfig; }; } -- cgit v1.2.3