Skip to content

Commit

Permalink
feat(ghostty): replace wezterm with ghostty
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Nov 3, 2023
1 parent 893ffaf commit 47957b7
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 105 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ changelog:
- title: other
order: 9999
- title: "terminals"
regexp: "^.*\\((kitty|wezterm|alacritty)\\):+.*$"
regexp: "^.*\\((kitty|wezterm|ghostty|alacritty)\\):+.*$"
order: 400
groups:
- title: improvements
Expand Down
3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
./modules/yamllint.nix
./modules/go.nix
./modules/fzf.nix
./modules/wezterm/default.nix
./modules/ghostty/default.nix
./modules/tmux/default.nix
./modules/neovim/default.nix
./modules/gpg.nix
Expand Down Expand Up @@ -113,7 +113,6 @@
./modules/yamllint.nix
./modules/go.nix
./modules/fzf.nix
./modules/wezterm/default.nix
./modules/tmux/default.nix
./modules/neovim/default.nix
./modules/gpg.nix
Expand Down
4 changes: 0 additions & 4 deletions modules/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@
fish_add_path -a /Applications/Postgres.app/Contents/Versions/latest/bin/
end
if test -e "/Applications/WezTerm.app"
fish_add_path -a /Applications/Wezterm.app/Contents/MacOS/
end
fish_add_path -a /opt/homebrew/bin/
'';
}
1 change: 0 additions & 1 deletion modules/darwin/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"subtitles"
"telegram"
"vlc"
"wezterm"
"whatsapp"
"yubico-yubikey-manager"
"zoom"
Expand Down
35 changes: 35 additions & 0 deletions modules/ghostty/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
font-family = "Berkeley Mono"
font-size = 16
font-feature = zero
font-feature = ss01
font-feature = ss02
font-feature = ss03
font-feature = ss04
font-feature = ss05
font-feature = ss06
font-feature = calt
font-feature = liga

palette = 0=#45475a
palette = 1=#f38ba8
palette = 2=#a6e3a1
palette = 3=#f9e2af
palette = 4=#89b4fa
palette = 5=#f5c2e7
palette = 6=#94e2d5
palette = 7=#bac2de
palette = 8=#585b70
palette = 9=#f38ba8
palette = 10=#a6e3a1
palette = 11=#f9e2af
palette = 12=#89b4fa
palette = 13=#f5c2e7
palette = 14=#94e2d5
palette = 15=#a6adc8
background = 1e1e2e
foreground = cdd6f4
cursor-color = f5e0dc
selection-background = 585b70
selection-foreground = cdd6f4

macos-option-as-alt = true
5 changes: 5 additions & 0 deletions modules/ghostty/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ config, ... }: {
xdg.configFile."ghostty/config" = {
source = config.lib.file.mkOutOfStoreSymlink ./config;
};
}
2 changes: 1 addition & 1 deletion modules/hammerspoon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ hotkey.bind(hyper, "Y", function()
end)

hotkey.bind(hyper, "U", function()
hs.application.launchOrFocus("WezTerm")
hs.application.launchOrFocus("Ghostty")
end)

hotkey.bind(hyper, "I", function()
Expand Down
2 changes: 1 addition & 1 deletion modules/tmux/tmux.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set -g default-terminal "wezterm"
set -g default-terminal "xterm-ghostty"
setenv -g COLORTERM "truecolor"

set -s escape-time 0
Expand Down
14 changes: 0 additions & 14 deletions modules/wezterm/default.nix

This file was deleted.

81 changes: 0 additions & 81 deletions modules/wezterm/wezterm.lua

This file was deleted.

0 comments on commit 47957b7

Please sign in to comment.