dotfiles/nixcfgs/users/js0ny/programs/ghostty.nix
2025-11-22 18:43:51 +00:00

60 lines
1.5 KiB
Nix

{
config,
pkgs,
...
}: {
programs.ghostty = {
enable = true;
package =
if pkgs.stdenv.isLinux
then pkgs.ghostty
else pkgs.ghostty-bin;
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;
systemd.enable =
if pkgs.stdenv.isDarwin
then false
else true;
# Not ready
settings = {
command = "${config.currentUser.defaultShell}";
font-size = 13;
font-family = "Maple Mono NF CN";
# theme = light:Catppuccin Latte,dark:Catppuccin Mocha;
# background-opacity = 0.8;
cursor-style = "block_hollow";
cursor-style-blink = true;
cursor-click-to-move = true;
cursor-invert-fg-bg = true;
window-decoration = "auto";
macos-option-as-alt = "left";
# title = "👻";
### Keybindings
keybind = [
"performable:ctrl+c=copy_to_clipboard"
"alt+shift+h=goto_split:left"
"alt+shift+j=goto_split:bottom"
"alt+shift+k=goto_split:top"
"alt+shift+l=goto_split:right"
"alt+shift+|=new_split:right"
"alt+shift+_=new_split:down"
"alt+shift+enter=new_split:auto"
"global:super+backquote=toggle_quick_terminal"
];
### Misc
app-notifications = "no-clipboard-copy";
### Reference to:
# https://github.com/folke/dot/blob/master/config/ghostty/config
# https://github.com/hackr-sh/ghostty-shaders
};
};
}