diff options
Diffstat (limited to 'gui/rofi.nix')
-rw-r--r-- | gui/rofi.nix | 10 |
1 files changed, 8 insertions, 2 deletions
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} ''; }; } |