aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake/system/aerospace.nix.org
blob: af1af432305212db0cbc26df2f88b6fb62bf74fd (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
#+title: Aerospace Configuration

#+begin_src nix
  { config, pkgs, ... }:

  {
    services.aerospace = {
      enable = true;
      settings = {
        gaps = {
          outer.left = 0;
          outer.bottom = 0;
          outer.top = 0;
          outer.right = 0;
        };
        on-focused-changed = [
          "move-mouse monitor-lazy-center"
        ];
        mode.main.binding = {
          cmd-enter = "exec-and-forget open -n /Applications/Ghostty.app/";
          cmd-d = "exec-and-forget ~/.local/bin/launcher";
          cmd-shift-f = "fullscreen";
          cmd-shift-space = "layout floating tiling";

          cmd-h = "focus --boundaries-action wrap-around-the-workspace left";
          cmd-j = "focus --boundaries-action wrap-around-the-workspace down";
          cmd-k = "focus --boundaries-action wrap-around-the-workspace up";
          cmd-l = "focus --boundaries-action wrap-around-the-workspace right";

          cmd-shift-h = "move left";
          cmd-shift-j = "move down";
          cmd-shift-k = "move up";
          cmd-shift-l = "move right";

          cmd-shift-minus = "resize smart -50";
          cmd-shift-equal = "resize smart +50";

          cmd-1 = "workspace 1";
          cmd-2 = "workspace 2";
          cmd-3 = "workspace 3";
          cmd-4 = "workspace 4";
          cmd-5 = "workspace 5";
          cmd-6 = "workspace 6";
          cmd-7 = "workspace 7";
          cmd-8 = "workspace 8";
          cmd-9 = "workspace 9";
          cmd-0 = "workspace 10";

          cmd-shift-1 = "move-node-to-workspace 1";
          cmd-shift-2 = "move-node-to-workspace 2";
          cmd-shift-3 = "move-node-to-workspace 3";
          cmd-shift-4 = "move-node-to-workspace 4";
          cmd-shift-5 = "move-node-to-workspace 5";
          cmd-shift-6 = "move-node-to-workspace 6";
          cmd-shift-7 = "move-node-to-workspace 7";
          cmd-shift-8 = "move-node-to-workspace 8";
          cmd-shift-9 = "move-node-to-workspace 9";
          cmd-shift-0 = "move-node-to-workspace 10";
        };
      };
    };
  }
#+end_src