mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
61 lines
1.5 KiB
Nix
61 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"
|
|
"alt+shift+n=new_window"
|
|
];
|
|
|
|
### 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
|
|
};
|
|
};
|
|
}
|