ghostty.nix 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. { pkgs, config, ... }:
  2. {
  3. programs.ghostty-darwin = {
  4. enable = true;
  5. # installVimSyntax = true;
  6. enableBashIntegration = true;
  7. enableZshIntegration = true;
  8. enableFishIntegration = true;
  9. themes = {
  10. iceberg-dark = {
  11. background = "161821";
  12. foreground = "c6c8d1";
  13. selection-background = "1e2132";
  14. selection-foreground = "c6c8d1";
  15. cursor-color = "#d2d4de";
  16. palette = [
  17. # black
  18. "0=#161821"
  19. "8=#6b7089"
  20. # red
  21. "1=#e27878"
  22. "9=#e98989"
  23. # green
  24. "2=#b4be82"
  25. "10=#c0ca8e"
  26. # yellow
  27. "3=#e2a478"
  28. "11=#e9b189"
  29. # blue
  30. "4=#84a0c6"
  31. "12=#91acd1"
  32. # magenta
  33. "5=#a093c7"
  34. "13=#ada0d3"
  35. # cyan
  36. "6=#89b8c2"
  37. "14=#95c4ce"
  38. # white
  39. "7=#c6c8d1"
  40. "15=#d2d4de"
  41. ];
  42. };
  43. };
  44. settings = {
  45. command = "${pkgs.lib.meta.getExe config.programs.nushell.package}";
  46. background-opacity = 0.8;
  47. font-family = "FiraCode Nerd Font";
  48. font-size = 11.0;
  49. macos-titlebar-style = "hidden";
  50. theme = "iceberg-dark";
  51. window-padding-x = 12;
  52. window-padding-y = 12;
  53. window-theme = "ghostty";
  54. # clearDefaultKeybindings = true;
  55. keybind = [
  56. "ctrl+a>r=reload_config"
  57. "ctrl+a>shift+5=new_split:right"
  58. "ctrl+a>shift+'=new_split:down"
  59. "ctrl+j=goto_split:bottom"
  60. "ctrl+k=goto_split:top"
  61. "ctrl+h=goto_split:left"
  62. "ctrl+l=goto_split:right"
  63. "ctrl+a>z=toggle_split_zoom"
  64. "opt+j=resize_split:down,10"
  65. "opt+k=resize_split:up,10"
  66. "opt+h=resize_split:left,10"
  67. "opt+l=resize_split:right,10"
  68. ];
  69. };
  70. };
  71. }