summaryrefslogtreecommitdiff
path: root/common/home/hyprland/default.nix
blob: 9d9749fdc8d447af95f0d29a285cbccd143a7299 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
  enable = true;
  systemd.variables = [ "--all" ];
  xwayland.enable = true;
  settings = {
    "$mod" = "SUPER";
    bind = [
      "$mod+Shift, Return, exec, alacritty"
      "$mod+Shift, Q, exit"
      "$mod+Shift, B, exec, firefox"
      "$mod, Escape, exec, hyprlock"
      "$mod, Space, exec, wofi --show run"
      "$mod, C, killactive,"

      "$mod, h, movefocus, l"
      "$mod, l, movefocus, r"
      "$mod, k, movefocus, u"
      "$mod, j, movefocus, d"

      "$mod+Shift, h, movewindow, l"
      "$mod+Shift, l, movewindow, r"
      "$mod+Shift, k, movewindow, u"
      "$mod+Shift, j, movewindow, d"

      "$mod, 1, workspace, 1"
      "$mod, 2, workspace, 2"
      "$mod, 3, workspace, 3"
      "$mod, 4, workspace, 4"
      "$mod, 5, workspace, 5"
      "$mod, 6, workspace, 6"
      "$mod, 7, workspace, 7"
      "$mod, 8, workspace, 8"
      "$mod, 9, workspace, 9"
      "$mod, 0, workspace, 10"

      "$mod+Shift, 1, movetoworkspace, 1"
      "$mod+Shift, 2, movetoworkspace, 2"
      "$mod+Shift, 3, movetoworkspace, 3"
      "$mod+Shift, 4, movetoworkspace, 4"
      "$mod+Shift, 5, movetoworkspace, 5"
      "$mod+Shift, 6, movetoworkspace, 6"
      "$mod+Shift, 7, movetoworkspace, 7"
      "$mod+Shift, 8, movetoworkspace, 8"
      "$mod+Shift, 9, movetoworkspace, 9"
      "$mod+Shift, 0, movetoworkspace, 10"
    ];

    binde = [
      "$mod, period, resizeactive, 20 0"
      "$mod, comma, resizeactive, -20 0"
      "$mod+Shift, period, resizeactive, 0 20"
      "$mod+Shift, comma, resizeactive, 0 -20"
    ];

    general = {
      gaps_in = 10;
      gaps_out = 10;
      layout = "dwindle";
    };

    decoration = {
      rounding = 5;
      drop_shadow = true;
      shadow_range = 4;
      shadow_render_power = 3;
    };

    animations = {
      enabled = true;
      bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
      animation = [
        "windows, 1, 3, myBezier"
        "windowsOut, 1, 3, default, popin 80%"
        "border, 1, 10, default"
        "borderangle, 1, 8, default"
        "fade, 1, 3, default"
        "workspaces, 1, 3, default"
      ];
    };

    dwindle = {
      pseudotile = true;
      preserve_split = true;
    };

    input = {
      kb_options = "caps:escape";

      touchpad = {
        natural_scroll = true;
        clickfinger_behavior = true;
      };
    };

    gestures = {
      workspace_swipe = true;
      workspace_swipe_fingers = 4;
    };

    misc = {
      disable_hyprland_logo = true;
      disable_splash_rendering = true;
      enable_swallow = false;
      swallow_regex = "^(Alacritty)$";
      animate_manual_resizes = true;
    };
  };
}