ghossty using module

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-06-10 19:36:21 +02:00
parent feb6d269de
commit a76fe844c6

View File

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