configures ghostty

This commit is contained in:
Dennis Schoepf 2025-11-25 22:25:33 +01:00
parent 6fa7ea037e
commit b6159d3ecd
2 changed files with 49 additions and 6 deletions

View file

@ -199,7 +199,11 @@
services.tailscale.enable = true;
# Environment & session variables
environment.variables.EDITOR = "nvim";
environment.variables = {
EDITOR = "nvim";
SYSTEMD_EDITOR = "nvim";
VISUAL = "nvim";
};
environment.sessionVariables.NIXOS_OZONE_WL = "1";
# This value determines the NixOS release from which the default

View file

@ -3,25 +3,54 @@
programs.ghostty = {
enable = true;
enableFishIntegration = true;
installBatSyntax = true;
installVimSyntax = true;
systemd.enable = true;
clearDefaultKeybinds = false; # set to true after config is finished
clearDefaultKeybinds = true;
settings = {
theme = "Catppuccin Mocha";
font-size = 15;
font-family = "VictorMono NF SemiBold";
background-opacity = 0.95;
window-padding-x = 16;
window-padding-x = 12;
window-padding-y = 12;
window-padding-balance = true;
window-inherit-working-directory = true;
window-theme = "ghostty";
copy-on-select = true;
shell-integration-features = true;
scrollback-limit = 100000;
background = "#0f0b15";
foreground = "#ffffff";
cursor-color = "#d369af";
selection-foreground = "#af85ea";
selection-background = "#572454";
palette = [
"0=#0f0b15"
"1=#f47359"
"2=#29a444"
"3=#b58a52"
"4=#3f95f6"
"5=#d369af"
"6=#4fbaef"
"7=#b8c6d5"
"8=#807c9f"
"9=#ff6a7a"
"10=#00a392"
"11=#df9080"
"12=#029fff"
"13=#af85ea"
"14=#35afbf"
"15=#ffffff"
];
keybind = [
"ctrl+b>v=new_split:left"
"ctrl+b>s=new_split:down"
"ctrl+b>s=new_split:auto"
"ctrl+b>h=goto_split:left"
"ctrl+b>j=goto_split:down"
"ctrl+b>k=goto_split:up"
"ctrl+b>l=goto_split:right"
"ctrl+b>z=toggle_split_zoom"
"ctrl+b>c=new_tab"
"ctrl+b>x=close_surface"
"ctrl+b>1=goto_tab:1"
"ctrl+b>2=goto_tab:2"
"ctrl+b>3=goto_tab:3"
@ -31,6 +60,16 @@
"ctrl+b>7=goto_tab:7"
"ctrl+b>8=goto_tab:8"
"ctrl+b>9=goto_tab:9"
"ctrl+b+u=scroll_page_lines:-20"
"ctrl+b+d=scroll_page_lines:20"
"ctrl+b>p=toggle_command_palette"
"ctrl++=increase_font_size:2"
"ctrl+-=decrease_font_size:2"
"ctrl+0=reset_font_size"
"ctrl+shift+a=select_all"
"ctrl+shift+c=copy_to_clipboard"
"ctrl+shift+v=paste_from_clipboard"
"global:cmd+semicolon>p=toggle_quick_terminal"
];
};
};