From 26dd014860c0edd89a859d2d8c6dff10275acbad Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Mon, 16 Dec 2024 23:28:56 -0600 Subject: system changes --- macos.local/.flake/system/yabai.nix.org | 62 ++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) mode change 120000 => 100644 macos.local/.flake/system/yabai.nix.org (limited to 'macos.local/.flake/system/yabai.nix.org') diff --git a/macos.local/.flake/system/yabai.nix.org b/macos.local/.flake/system/yabai.nix.org deleted file mode 120000 index 08a3a0b..0000000 --- a/macos.local/.flake/system/yabai.nix.org +++ /dev/null @@ -1 +0,0 @@ -../../../common/.flake/system/yabai.nix.org \ No newline at end of file diff --git a/macos.local/.flake/system/yabai.nix.org b/macos.local/.flake/system/yabai.nix.org new file mode 100644 index 0000000..1c70dcc --- /dev/null +++ b/macos.local/.flake/system/yabai.nix.org @@ -0,0 +1,61 @@ +#+title: Yabai Configuration + +#+begin_src nix + { config, pkgs, ... }: + + { + services.yabai = { + enable = true; +#+end_src + +Use scripting addition features. +#+begin_src nix + enableScriptingAddition = true; + config = { +#+end_src + +Use auto-tiling. +#+begin_src nix + layout = "bsp"; + auto_balance = "on"; +#+end_src + +Do not use padding between windows. +#+begin_src nix + top_padding = 0; + bottom_padding = 0; + left_padding = 0; + right_padding = 0; + window_gap = 0; +#+end_src + +Disable window shadows unless the application is floating. +#+begin_src nix + window_shadow = "float"; +#+end_src + +Mouse moves to focused window and windows are focused on mouse hover. +#+begin_src nix + focus_follows_mouse = "autoraise"; + mouse_follows_focus = "on"; +#+end_src + +Use =⌘= with the mouse to move and resize. +#+begin_src nix + mouse_modifier = "cmd"; + mouse_action1 = "move"; + mouse_action2 = "resize"; + mouse_drop_action = "swap"; +#+end_src + +Add exceptions for some apps. +#+begin_src nix + }; + extraConfig = '' + yabai -m rule --add app="^System Settings$" manage=off + yabai -m rule --add app="^Calculator$" manage=off + yabai -m rule --add app="^mpv" manage=off + ''; + }; + } +#+end_src -- cgit v1.2.3