From 1fa648a224f1c148a69a4cbfa317402388ae4650 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Mon, 24 Mar 2025 21:03:14 +0300 Subject: [PATCH] feat: remove window decorations on darwin too --- modules/common/ghostty.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/common/ghostty.nix b/modules/common/ghostty.nix index 5490c0e..9e1ecb7 100644 --- a/modules/common/ghostty.nix +++ b/modules/common/ghostty.nix @@ -1,5 +1,5 @@ { config, lib, pkgs, ... }: let - inherit (lib) enabled mapAttrsToList merge mkIf optionals; + inherit (lib) enabled mapAttrsToList merge mkIf; in merge <| mkIf config.isDesktop { environment.variables = { TERMINAL = mkIf config.isLinux "ghostty"; @@ -26,7 +26,7 @@ in merge <| mkIf config.isDesktop { mouse-hide-while-typing = true; - confirm-close-surface = false; + confirm-close-surface = false; quit-after-last-window-closed = true; window-decoration = config.isDarwin; @@ -74,9 +74,7 @@ in merge <| mkIf config.isDesktop { } ++ mapAttrsToList (name: value: "ctrl+${name}=${value}") { "physical:tab" = "next_tab"; "shift+physical:tab" = "previous_tab"; - } ++ optionals config.isDarwin [ - "command+q=quit" - ]; + }; }; }; }];