From 54f7e1a124cf07f0e69a5bb230a105a063146d2d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 4 Oct 2019 22:15:06 +0200 Subject: Inline rofi configuration --- user/modules/rofi.nix | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'user/modules') diff --git a/user/modules/rofi.nix b/user/modules/rofi.nix index 1de577b3..b34af881 100644 --- a/user/modules/rofi.nix +++ b/user/modules/rofi.nix @@ -1,8 +1,25 @@ { config, pkgs, ... }: { - xdg.configFile.rofi = { - recursive = true; - source = ../rofi/.config/rofi; + xdg.configFile."networkmanager-dmenu/config.ini".text = '' + [dmenu] + dmenu_command = /run/current-system/sw/bin/rofi + + [editor] + terminal = xst + gui_if_available = false + ''; + programs.rofi = { + enable = true; + extraConfig = '' + rofi.matching: glob + rofi.separator-style: none + + rofi.line-padding: 2 + + rofi.display-run: cmd + rofi.display-drun: run + rofi.display-window: win + ''; }; } -- cgit 1.4.1