From dbd691363829be84e32537b2df072d65bcbbac90 Mon Sep 17 00:00:00 2001 From: Timo Bingmann Date: Mon, 22 Sep 2025 11:42:21 -0700 Subject: [PATCH] macos: add Terminal settings --- system/macos/system.nix | 16 ++++++++++++++++ system/macos/yabai.nix | 22 +++++++++++----------- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/system/macos/system.nix b/system/macos/system.nix index c078d5c..270674e 100644 --- a/system/macos/system.nix +++ b/system/macos/system.nix @@ -84,6 +84,22 @@ SortColumn = "CPUUsage"; # Sort by CPU usage SortDirection = 0; # Sort descending }; + + # Terminal settings + # These cannot be set automatically, as they delete all other entries. + + # CustomUserPreferences."com.apple.Terminal" = { + # "Default Window Settings" = "Pro"; + # "Window Settings" = { + # Pro = { + # keyMapBoundKeys = { + # # Map Home and End keys to terminal escape sequences. + # F729 = "\033OH"; + # F72B = "\033OF"; + # }; + # }; + # }; + # }; }; # Keyboard settings diff --git a/system/macos/yabai.nix b/system/macos/yabai.nix index 345ab7c..73058bc 100644 --- a/system/macos/yabai.nix +++ b/system/macos/yabai.nix @@ -9,25 +9,25 @@ layout = "bsp"; # New window spawns to the right if vertical split, or bottom if horizontal split - "window_placement" = "second_child"; + window_placement = "second_child"; # padding set to 4px - "top_padding" = "4"; - "bottom_padding" = "4"; - "left_padding" = "4"; - "right_padding" = "4"; - "window_gap" = "4"; + 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"; + focus_follows_mouse = "autofocus"; + mouse_follows_focus = "off"; # modifier for clicking and dragging with mouse - "mouse_modifier" = "cmd"; + mouse_modifier = "cmd"; # set modifier + left-click drag to move window - "mouse_action1" = "move"; + mouse_action1 = "move"; # set modifier + right-click drag to resize window - "mouse_action2" = "resize"; + mouse_action2 = "resize"; }; }; }