fork/home-manager

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

Mihai Fufezanhyprland: prioritize variables and beziers (#4263)76dd6c66

master
1.6 KiB68 linesraw
1{ config, lib, ... }:
2
3{
4  wayland.windowManager.hyprland = {
5    enable = true;
6    package = lib.makeOverridable
7      (attrs: config.lib.test.mkStubPackage { name = "hyprland"; }) { };
8    plugins =
9      [ "/path/to/plugin1" (config.lib.test.mkStubPackage { name = "foo"; }) ];
10    settings = {
11      decoration = {
12        shadow_offset = "0 5";
13        "col.shadow" = "rgba(00000099)";
14      };
15
16      "$mod" = "SUPER";
17
18      animations = {
19        enabled = true;
20        animation = [
21          "border, 1, 2, smoothIn"
22          "fade, 1, 4, smoothOut"
23          "windows, 1, 3, overshot, popin 80%"
24        ];
25      };
26
27      bezier = [
28        "smoothOut, 0.36, 0, 0.66, -0.56"
29        "smoothIn, 0.25, 1, 0.5, 1"
30        "overshot, 0.4,0.8,0.2,1.2"
31      ];
32
33      input = {
34        kb_layout = "ro";
35        follow_mouse = 1;
36        accel_profile = "flat";
37        touchpad = { scroll_factor = 0.3; };
38      };
39
40      bindm = [
41        # mouse movements
42        "$mod, mouse:272, movewindow"
43        "$mod, mouse:273, resizewindow"
44        "$mod ALT, mouse:272, resizewindow"
45      ];
46    };
47    extraConfig = ''
48      # window resize
49      bind = $mod, S, submap, resize
50
51      submap = resize
52      binde = , right, resizeactive, 10 0
53      binde = , left, resizeactive, -10 0
54      binde = , up, resizeactive, 0 -10
55      binde = , down, resizeactive, 0 10
56      bind = , escape, submap, reset
57      submap = reset
58    '';
59  };
60
61  nmt.script = ''
62    config=home-files/.config/hypr/hyprland.conf
63    assertFileExists "$config"
64
65    normalizedConfig=$(normalizeStorePaths "$config")
66    assertFileContent "$normalizedConfig" ${./simple-config.conf}
67  '';
68}