Inline rofi configuration
Alan Pearce alan@alanpearce.eu
Fri, 04 Oct 2019 22:15:06 +0200
3 files changed, 20 insertions(+), 17 deletions(-)
jump to
M user/modules/rofi.nix → 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 + ''; }; }
D user/rofi/.config/networkmanager-dmenu/config.ini
@@ -1,6 +0,0 @@-[dmenu] -dmenu_command = /run/current-system/sw/bin/rofi - -[editor] -terminal = xst -gui_if_available = false
D user/rofi/.config/rofi/config
@@ -1,8 +0,0 @@-rofi.matching: glob -rofi.separator-style: none - -rofi.line-padding: 2 - -rofi.display-run: cmd -rofi.display-drun: run -rofi.display-window: win