aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/services/window-managers/i3/i3-followmouse.nix
blob: 8d51e3488772dcb4334e938338e183e119c972ec (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
{ config, lib, ... }:

with lib;

{
  config = {
    xsession.windowManager.i3 = {
      enable = true;

      config.focus.followMouse = false;
    };

    nixpkgs.overlays = [
      (self: super: {
        dmenu = super.dmenu // { outPath = "@dmenu@"; };

        i3 = super.i3 // { outPath = "@i3@"; };

        i3status = super.i3status // { outPath = "@i3status@"; };
      })
    ];

    nmt.script = ''
      assertFileExists home-files/.config/i3/config
      assertFileContent home-files/.config/i3/config \
        ${./i3-followmouse-expected.conf}
    '';
  };
}