ghostty (unfinished)
This commit is contained in:
54
home-modules/ghostty.nix
Normal file
54
home-modules/ghostty.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{ config, rice, inputs, system, ... }:
|
||||
{
|
||||
home = {
|
||||
packages = [ inputs.ghostty.packages.${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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user