aboutsummaryrefslogtreecommitdiff
path: root/common/.flake/system/yabai.nix.org
blob: 4cdbf5ea0ff6e7e3861ecd85ec3a86fb4a1bd28a (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
#+title: Yabai Configuration

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

  {
    services.yabai = {
      enable = true;
      enableScriptingAddition = true;
      config = {
        layout = "bsp";
        auto_balance = "on";
        top_padding = 10;
        bottom_padding = 10;
        left_padding = 10;
        right_padding = 10;
        window_gap = 10;
        window_shadow = "float";
        focus_follows_mouse = "autoraise";
        mouse_follows_focus = "on";
        mouse_modifier = "cmd";
        mouse_action1 = "move";
        mouse_action2 = "resize";
        mouse_drop_action = "swap";
      };
      extraConfig = ''
        yabai -m rule --add app="^System Settings$" manage=off
        yabai -m rule --add app="^Calculator$" manage=off
      '';
    };
  }
#+end_src