Start ghostty in maximized window state
This commit is contained in:
parent
1c00ca8c64
commit
75f16ab43d
3 changed files with 8 additions and 3 deletions
|
|
@ -32,6 +32,7 @@
|
|||
programs.ghostty-custom = {
|
||||
enable = true;
|
||||
package = null; # Use Homebrew-installed Ghostty on Darwin
|
||||
windowMode = "maximized";
|
||||
};
|
||||
|
||||
home.username = "yanlin";
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
enable = true;
|
||||
package = pkgs.ghostty; # Install via nix on NixOS
|
||||
fontSize = 11;
|
||||
windowMode = "fullscreen";
|
||||
windowMode = "maximized";
|
||||
};
|
||||
|
||||
# Any ThinkPad-specific home configurations can be added here
|
||||
|
|
|
|||
|
|
@ -24,9 +24,9 @@ in
|
|||
};
|
||||
|
||||
windowMode = mkOption {
|
||||
type = types.enum [ "windowed" "fullscreen" ];
|
||||
type = types.enum [ "windowed" "maximized" "fullscreen" ];
|
||||
default = "windowed";
|
||||
description = "Window mode: 'windowed' for fixed size window or 'fullscreen' for full screen";
|
||||
description = "Window mode: 'windowed' for fixed size, 'maximized' for maximized window, or 'fullscreen' for full screen";
|
||||
};
|
||||
|
||||
windowWidth = mkOption {
|
||||
|
|
@ -103,6 +103,10 @@ in
|
|||
window-height = cfg.windowHeight;
|
||||
})
|
||||
|
||||
(mkIf (cfg.windowMode == "maximized") {
|
||||
maximize = true;
|
||||
})
|
||||
|
||||
(mkIf (cfg.windowMode == "fullscreen") {
|
||||
fullscreen = true;
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue