summary refs log tree commit diff stats
path: root/user/settings/rofi.nix
blob: 7551483554039a827d343582bf03a4e93864f23c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ config, lib, pkgs, ... }:

{
  xdg.configFile."networkmanager-dmenu/config.ini".text = ''
    [dmenu]
    dmenu_command = ${pkgs.rofi}/bin/dmenu

    [editor]
    terminal = ${config.home.sessionVariables.TERMINAL}
    gui_if_available = false
  '';

  nixpkgs.overlays = [
    (self: super: {
      rofi= super.rofi.overrideAttrs (oldAttrs: rec {
        postInstall = ''
          ln $out/bin/rofi $out/bin/dmenu
        '';
      });
    })
  ];
  programs.rofi = {
    enable = true;
    theme = "Arc";
    extraConfig = ''
      rofi.matching:            glob
      rofi.separator-style:     none

      rofi.modi:                drun,run

      rofi.line-padding:        2

      rofi.display-run:         cmd
      rofi.display-drun:        run
      rofi.display-window:      win
    '';
  };
}