From 9ee3547d5db02ca02b74594c9c4e4ef29a2c9b54 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Sat, 25 Apr 2026 22:21:27 -0400 Subject: [PATCH] ghostty --- README.md | 2 +- home/profiles/gui.nix | 3 +- home/progs/alacritty.nix | 131 --------------------------------------- home/progs/ghostty.nix | 18 +++++- 4 files changed, 19 insertions(+), 135 deletions(-) delete mode 100644 home/progs/alacritty.nix diff --git a/README.md b/README.md index 7b89add..810f80a 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Browser: Firefox 🦊 (actually [Zen Browser](https://github.com/zen-browser/des Text Editor: [Doom Emacs](https://github.com/doomemacs/doomemacs) -Terminal: [alacritty](https://github.com/alacritty/alacritty) +Terminal: [ghostty](https://ghostty.org/) Shell: [fish](https://fishshell.com/) with the [pure](https://github.com/pure-fish/pure) prompt diff --git a/home/profiles/gui.nix b/home/profiles/gui.nix index 8a95571..5436d59 100644 --- a/home/profiles/gui.nix +++ b/home/profiles/gui.nix @@ -8,8 +8,7 @@ { imports = [ ./no-gui.nix - # ../progs/ghostty.nix - ../progs/alacritty.nix + ../progs/ghostty.nix ../progs/emacs.nix # ../progs/trezor.nix # - broken ../progs/flatpak.nix diff --git a/home/progs/alacritty.nix b/home/progs/alacritty.nix deleted file mode 100644 index 63484a2..0000000 --- a/home/progs/alacritty.nix +++ /dev/null @@ -1,131 +0,0 @@ -{ pkgs, ... }: -{ - home.sessionVariables = { - TERMINAL = "alacritty"; - }; - - programs.alacritty = { - enable = true; - package = pkgs.alacritty; - settings = { - # some programs can't handle alacritty - env.TERM = "xterm-256color"; - - window = { - # using a window manager, no decorations needed - decorations = "none"; - - # semi-transparent - opacity = 0.90; - - # padding between the content of the terminal and the edge - padding = { - x = 10; - y = 10; - }; - - dimensions = { - columns = 80; - lines = 40; - }; - }; - - scrolling = { - history = 1000; - multiplier = 3; - }; - - font = - let - baseFont = { - family = "JetBrains Mono Nerd Font"; - style = "Regular"; - }; - in - { - size = 12; - - normal = baseFont; - - bold = baseFont // { - style = "Bold"; - }; - - italic = baseFont // { - style = "Italic"; - }; - - offset.y = 0; - glyph_offset.y = 0; - }; - - # color scheme - colors = - let - normal = { - black = "0x1b1e28"; - red = "0xd0679d"; - green = "0x5de4c7"; - yellow = "0xfffac2"; - blue = "#435c89"; - magenta = "0xfcc5e9"; - cyan = "0xadd7ff"; - white = "0xffffff"; - }; - - bright = { - black = "0xa6accd"; - red = normal.red; - green = normal.green; - yellow = normal.yellow; - blue = normal.cyan; - magenta = "0xfae4fc"; - cyan = "0x89ddff"; - white = normal.white; - }; - in - { - inherit normal bright; - primary = { - background = "0x131621"; - foreground = bright.black; - }; - - cursor = { - text = "CellBackground"; - cursor = "CellForeground"; - }; - - search = - let - foreground = normal.black; - background = normal.cyan; - in - { - matches = { - inherit foreground background; - }; - - focused_match = { - inherit foreground background; - }; - }; - - selection = { - text = "CellForeground"; - background = "0x303340"; - }; - - vi_mode_cursor = { - text = "CellBackground"; - cursor = "CellForeground"; - }; - }; - - cursor = { - style = "Underline"; - vi_mode_style = "Underline"; - }; - }; - }; -} diff --git a/home/progs/ghostty.nix b/home/progs/ghostty.nix index 2f9b68f..4d1eeed 100644 --- a/home/progs/ghostty.nix +++ b/home/progs/ghostty.nix @@ -6,7 +6,23 @@ enableFishIntegration = true; settings = { theme = "Adventure"; - background-opacity = 0.7; + + # font + font-family = "JetBrainsMono Nerd Font"; + font-size = 12; + + # window + window-decoration = false; + window-padding-x = 10; + window-padding-y = 10; + window-width = 80; + window-height = 40; + + # semi-transparent + background-opacity = 0.90; + + # cursor + cursor-style = "underline"; }; };