1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-28 10:37:44 +00:00

feat: remove window decorations on darwin too

This commit is contained in:
RGBCube 2025-03-24 21:03:14 +03:00
parent 59c9608c28
commit 1fa648a224
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -1,5 +1,5 @@
{ config, lib, pkgs, ... }: let { config, lib, pkgs, ... }: let
inherit (lib) enabled mapAttrsToList merge mkIf optionals; inherit (lib) enabled mapAttrsToList merge mkIf;
in merge <| mkIf config.isDesktop { in merge <| mkIf config.isDesktop {
environment.variables = { environment.variables = {
TERMINAL = mkIf config.isLinux "ghostty"; TERMINAL = mkIf config.isLinux "ghostty";
@ -26,7 +26,7 @@ in merge <| mkIf config.isDesktop {
mouse-hide-while-typing = true; mouse-hide-while-typing = true;
confirm-close-surface = false; confirm-close-surface = false;
quit-after-last-window-closed = true; quit-after-last-window-closed = true;
window-decoration = config.isDarwin; window-decoration = config.isDarwin;
@ -74,9 +74,7 @@ in merge <| mkIf config.isDesktop {
} ++ mapAttrsToList (name: value: "ctrl+${name}=${value}") { } ++ mapAttrsToList (name: value: "ctrl+${name}=${value}") {
"physical:tab" = "next_tab"; "physical:tab" = "next_tab";
"shift+physical:tab" = "previous_tab"; "shift+physical:tab" = "previous_tab";
} ++ optionals config.isDarwin [ };
"command+q=quit"
];
}; };
}; };
}]; }];