Files
dotfiles/home-modules/ghostty.nix
Lennart J. Kurzweg (Nx2) 68cb4377b7 New Flake Style XPS fix
2025-05-27 12:12:36 +02:00

55 lines
1.5 KiB
Nix

{ config, rice, hyper, inputs, ... }:
{
home = {
packages = [ inputs.ghostty.packages.${hyper.system}.default ];
file."${config.xdg.configHome}/ghostty/config".text = with rice.color; /* ini */ ''
font-family="${rice.font.code.name}"
clipboard-read=allow
# clipboard-write=allow
# clipboard-read=deny
# clipboard-write=deny
clipboard-trim-trailing-spaces=true
clipboard-paste-protection=false
window-decoration=false
confirm-close-surface=false
window-padding-x=5
window-padding-y=5
keybind=ctrl+comma=reload_config
keybind=ctrl+equal=increase_font_size:1
keybind=ctrl+minus=decrease_font_size:1
keybind=ctrl+shift+v=paste_from_clipboard
background=${background}
foreground=${foreground}
background-opacity=${builtins.toString rice.transparency}
cursor-color=${special.bright}
cursor-opacity=0.8
palette=0=${black.base}
palette=8=${black.bright}
palette=1=${red.base}
palette=9=${red.bright}
palette=2=${green.base}
palette=10=${green.bright}
palette=3=${yellow.base}
palette=11=${yellow.bright}
palette=4=${blue.base}
palette=12=${blue.bright}
palette=5=${magenta.base}
palette=13=${magenta.bright}
palette=6=${cyan.base}
palette=14=${cyan.bright}
palette=7=${white.base}
palette=15=${white.bright}
selection-background=${accent.base}
selection-foreground=${background}
'';
};
}