aboutsummaryrefslogtreecommitdiff
path: root/config/ghostty.nix
blob: 7e7aef673cb384995586b925c51c3ebbe6470154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ ... }:

{
  programs.ghostty = {
    enable = true;

    settings = {
      theme = "Catppuccin Mocha";
      #background = "#282a36";
      "background-opacity" = 0.9;

      #custom-shader = "/home/swarn/.config/ghostty/bettercrt.glsl";

      "window-vsync" = true;

      title = "Ghostty";
      class = "ghostty";

      "shell-integration" = "zsh";

      "quick-terminal-position" = "top";
      "quick-terminal-autohide" = false;

      "font-family" = "LythMono Nerd Font";
      "font-size" = 16;

      "cursor-style" = "block";
      "cursor-style-blink" = false;
      "shell-integration-features" = "no-cursor";

      #gtk-titlebar = false;
      "window-decoration" = "server";
      "confirm-close-surface" = false;

      "window-theme" = "ghostty";

      "window-padding-x" = 8;
      "window-padding-y" = 2;
      "window-padding-balance" = true;

      keybind = [
        "alt+shift+r=reload_config"
        "ctrl+a=toggle_quick_terminal"
      ];
    };
  };
}