aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake/home/programs/ghostty.nix.org
blob: 7f72a3a337c0f81fd98bb571419a641d6c26f552 (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
#+title: ghostty Configuration

I use =ghostty= as a terminal emulator on macOS. I disable auto-update and set some sensible options.
#+begin_src nix
  { config, pkgs, ... }:

  {
    home.file."./.config/ghostty/config".text = ''
      auto-update = "off"
      background-blur-radius = 20
      background-opacity = 0.8
      clipboard-trim-trailing-spaces = true
      font-family = "SauceCodePro Nerd Font"
      font-thicken = true
      macos-option-as-alt = true
      macos-window-shadow = false
      mouse-hide-while-typing = true
      quit-after-last-window-closed = true
      theme = "Builtin Light"
      window-decoration = true
      palette = 0=#ffffff
      palette = 1=#a60000
      palette = 2=#006800
      palette = 3=#6f5500
      palette = 4=#0031a9
      palette = 5=#721045
      palette = 6=#005e8b
      palette = 7=#000000
      palette = 8=#f2f2f2
      palette = 9=#d00000
      palette = 10=#008900
      palette = 11=#808000
      palette = 12=#0000ff
      palette = 13=#dd22dd
      palette = 14=#008899
      palette = 15=#595959
      background = #ffffff
      foreground = #000000
      cursor-color = #000000
      selection-background = #dfa0f0
      selection-foreground = #000000
    '';
  }
#+end_src