From 4a9c69bc20dcdb0dcf3880895bcb52f6eeb3a1ae Mon Sep 17 00:00:00 2001 From: himkt Date: Fri, 27 Dec 2024 11:28:05 +0900 Subject: [PATCH 1/4] feat(ghostty): new --- ghostty/bin/setup.sh | 7 +++++++ ghostty/config.d/config | 5 +++++ 2 files changed, 12 insertions(+) create mode 100755 ghostty/bin/setup.sh create mode 100644 ghostty/config.d/config diff --git a/ghostty/bin/setup.sh b/ghostty/bin/setup.sh new file mode 100755 index 00000000..fa561338 --- /dev/null +++ b/ghostty/bin/setup.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +mkdir -p $HOME/Library/Application\ Support/com.mitchellh.ghostty + +ln -s \ + $HOME/dotfiles/ghostty/config.d/config \ + $HOME/Library/Application\ Support/com.mitchellh.ghostty/config diff --git a/ghostty/config.d/config b/ghostty/config.d/config new file mode 100644 index 00000000..c9908395 --- /dev/null +++ b/ghostty/config.d/config @@ -0,0 +1,5 @@ +font-family = "Jetbrains Mono" +font-size = 15 + +background-opacity = 0.8 +background-blur-radius = 20 \ No newline at end of file From 5e61cd965ccf2dc33b4a9e9f3afd272eb422f871 Mon Sep 17 00:00:00 2001 From: himkt Date: Fri, 27 Dec 2024 11:28:30 +0900 Subject: [PATCH 2/4] deps(ghostty): add make recipe for ghostty --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index f8afb5c8..0a4d4b93 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,9 @@ base: cargo git tmux zsh cargo: cargo_clean $(PWD)/cargo/bin/setup.sh +ghostty: ghostty_clean + $(PWD)/ghostty/bin/setup.sh + git: git_clean $(PWD)/git/bin/setup.sh @@ -65,6 +68,9 @@ clean: \ cargo_clean: rm -rf $(HOME)/.cargo/config.toml +ghostty_clean: + rm -rf $(HOME)/Library/Application\ Support/com.mitchellh.ghostty + git_clean: rm -rf $(HOME)/.config/git/config rm -rf $(HOME)/.config/git/ignore From 2a0d3775e7c58c36160cdc93a980564ddb02b0f1 Mon Sep 17 00:00:00 2001 From: himkt Date: Fri, 27 Dec 2024 11:28:46 +0900 Subject: [PATCH 3/4] deps(brew): add ghostty --- brew/config.d/gui/Brewfile | 1 + 1 file changed, 1 insertion(+) diff --git a/brew/config.d/gui/Brewfile b/brew/config.d/gui/Brewfile index cc5cb9a2..e9f98868 100644 --- a/brew/config.d/gui/Brewfile +++ b/brew/config.d/gui/Brewfile @@ -1,6 +1,7 @@ cask 'arc' cask 'font-jetbrains-mono' cask 'docker' +cask 'ghostty' cask 'notion' cask 'ngrok/ngrok/ngrok' cask 'insomnia' From 5ba76e775f3425d2db01ed2590c09a2e1362c874 Mon Sep 17 00:00:00 2001 From: himkt Date: Sat, 28 Dec 2024 09:47:54 +0900 Subject: [PATCH 4/4] misc(wezterm): cleanup wezterm related configs --- Makefile | 6 ------ brew/config.d/gui/Brewfile | 1 - wezterm/bin/setup.sh | 5 ----- wezterm/config.d/wezterm.lua | 37 ------------------------------------ 4 files changed, 49 deletions(-) delete mode 100755 wezterm/bin/setup.sh delete mode 100644 wezterm/config.d/wezterm.lua diff --git a/Makefile b/Makefile index 0a4d4b93..7f902f7e 100644 --- a/Makefile +++ b/Makefile @@ -52,9 +52,6 @@ tmux: tmux_clean uv: uv_clean curl -LsSf https://astral.sh/uv/install.sh | sh -wezterm: wezterm_clean - $(PWD)/wezterm/bin/setup.sh - zsh: zsh_clean $(PWD)/zsh/bin/setup.sh @@ -89,9 +86,6 @@ tmux_clean: uv_clean: rm -rf $(HOME)/.local/bin/uv $(HOME)/.local/bin/uvx -wezterm_clean: - rm -rf $(HOME)/.config/wezterm - zsh_clean: rm -rf $(HOME)/.zshrc diff --git a/brew/config.d/gui/Brewfile b/brew/config.d/gui/Brewfile index e9f98868..2d71b63c 100644 --- a/brew/config.d/gui/Brewfile +++ b/brew/config.d/gui/Brewfile @@ -7,5 +7,4 @@ cask 'ngrok/ngrok/ngrok' cask 'insomnia' cask 'slack' cask 'visual-studio-code' -cask 'wezterm' cask '1password' diff --git a/wezterm/bin/setup.sh b/wezterm/bin/setup.sh deleted file mode 100755 index 42c10651..00000000 --- a/wezterm/bin/setup.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -set -x - -mkdir -p $HOME/.config/wezterm -ln -s $HOME/dotfiles/wezterm/config.d/wezterm.lua $HOME/.config/wezterm/wezterm.lua diff --git a/wezterm/config.d/wezterm.lua b/wezterm/config.d/wezterm.lua deleted file mode 100644 index 4a4a1c4b..00000000 --- a/wezterm/config.d/wezterm.lua +++ /dev/null @@ -1,37 +0,0 @@ -local wezterm = require 'wezterm' -local config = {} - - -config.keys = {} -config.scrollback_lines = 9999999 - --- Use the defaults as a base -config.hyperlink_rules = wezterm.default_hyperlink_rules() - --- Font -config.font = wezterm.font 'JetBrains Mono NL' -config.font_size = 16.0 - --- https://wezfurlong.org/wezterm/colorschemes/g/index.html -config.color_scheme = 'Guezwhoz' -config.colors = {cursor_bg = 'cyan', cursor_fg = 'black'} -config.default_cursor_style = 'SteadyUnderline' -config.window_background_opacity = 0.8 - --- skip confirmation prompt when quitting app -config.window_close_confirmation = 'NeverPrompt' - --- fullscreen shortcut -config.native_macos_fullscreen_mode = true -config.keys[1] = { - key = 'f', - mods = 'CMD|CTRL', - action = wezterm.action.ToggleFullScreen, -} -config.keys[2] = { - key = 'Enter', - mods = 'CMD', - action = wezterm.action.ToggleFullScreen, -} - -return config