fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Robert Helgessonherbstluftwm: merge improvements0f8bf4f9

master
1.2 KiB46 linesraw
1{ lib, pkgs, ... }:
2
3{
4  xsession.windowManager.herbstluftwm = {
5    enable = true;
6    settings = {
7      always_show_frame = true;
8      default_frame_layout = "max";
9      frame_bg_active_color = "#000000";
10      frame_gap = 12;
11      frame_padding = -12;
12    };
13    keybinds = {
14      "Mod4-1" = "use 1";
15      "Mod4-2" = "use 2";
16      "Mod4-Tab" = "cycle 1";
17      "Mod4-Alt-Tab" = "cycle -1";
18    };
19    mousebinds = {
20      "Mod4-B1" = "move";
21      "Mod4-B3" = "resize";
22    };
23    rules = [
24      "focus=on"
25      "windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' focus=on pseudotile=on"
26      "class~'[Pp]inentry' instance=pinentry focus=on floating=on floatplacement=center keys_inactive='.*'"
27    ];
28    tags = [ "1" "with space" "wə1rd#ch@rs'" ];
29    extraConfig = ''
30      herbstclient use 1
31    '';
32  };
33
34  test.stubs.herbstluftwm = { };
35
36  nmt.script = ''
37    autostart=home-files/.config/herbstluftwm/autostart
38    assertFileExists "$autostart"
39    assertFileIsExecutable "$autostart"
40
41    normalizedAutostart=$(normalizeStorePaths "$autostart")
42    assertFileContent "$normalizedAutostart" ${
43      ./herbstluftwm-simple-config-autostart
44    }
45  '';
46}