-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathghostty.nix
87 lines (74 loc) · 1.86 KB
/
ghostty.nix
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
inputs,
pkgs,
host,
...
}:
let
ghostty = inputs.ghostty.packages.x86_64-linux.default;
in
{
home.packages = [ ghostty ];
xdg.configFile."ghostty/config".text = ''
# Font
font-family = "Maple Mono"
font-size = ${if (host == "laptop") then "16" else "17"}
font-feature = calt
font-feature = ss03
bold-is-bright = false
selection-invert-fg-bg = true
# Theme
theme = "gruvbox"
background-opacity = 0.66
cursor-style = bar
cursor-style-blink = false
adjust-cursor-thickness = 1
resize-overlay = never
copy-on-select = false
confirm-close-surface = false
mouse-hide-while-typing = true
window-theme = ghostty
# window-padding-x = 4
# window-padding-y = 6
window-padding-balance = true
window-padding-color = background
window-inherit-working-directory = true
window-inherit-font-size = true
window-decoration = false
gtk-titlebar = false
gtk-single-instance = false
gtk-tabs-location = bottom
gtk-wide-tabs = false
auto-update = off
term = ghostty
clipboard-paste-protection = false
keybind = shift+end=unbind
keybind = shift+home=unbind
keybind = ctrl+shift+left=unbind
keybind = ctrl+shift+right=unbind
keybind = shift+enter=text:\n
'';
xdg.configFile."ghostty/themes/gruvbox".text = ''
background = #1d2021
foreground = #fbf1c7
palette = 0=#32302f
palette = 1=#cc241d
palette = 2=#98971a
palette = 3=#d79921
palette = 4=#458588
palette = 5=#b16286
palette = 6=#689d6a
palette = 7=#ebdbb2
palette = 8=#928374
palette = 9=#fb4934
palette = 10=#b8bb26
palette = 11=#fabd2f
palette = 12=#83a598
palette = 13=#d3869b
palette = 14=#8ec07c
palette = 15=#fbf1c7
cursor-color = #D5C4A1
selection-foreground = #282828
selection-background = #98971A
'';
}