34 lines
856 B
Nix
34 lines
856 B
Nix
{ ... }:
|
|
{
|
|
# Enable the Yabai Window Manager
|
|
services.yabai = {
|
|
enable = true;
|
|
|
|
config = {
|
|
# default layout (can be bsp, stack or float)
|
|
layout = "bsp";
|
|
|
|
# New window spawns to the right if vertical split, or bottom if horizontal split
|
|
window_placement = "second_child";
|
|
|
|
# padding set to 4px
|
|
top_padding = "4";
|
|
bottom_padding = "4";
|
|
left_padding = "4";
|
|
right_padding = "4";
|
|
window_gap = "4";
|
|
|
|
# center mouse on window with focus
|
|
focus_follows_mouse = "autofocus";
|
|
mouse_follows_focus = "off";
|
|
|
|
# modifier for clicking and dragging with mouse
|
|
mouse_modifier = "cmd";
|
|
# set modifier + left-click drag to move window
|
|
mouse_action1 = "move";
|
|
# set modifier + right-click drag to resize window
|
|
mouse_action2 = "resize";
|
|
};
|
|
};
|
|
}
|