ターミナルを Alacritty から Ghostty に乗り換えたので、いつか戻ってくるかもしれない日のために Alacritty の設定をメモとして残しておきます。これまで Alacritty とセットで tmux を組み合わせて使っていましたが(もっぱらウィンドウ分割機能を実現をするためだけ)、こちらも不要になったので削除します。
コンフィグファイルの配置 #
$HOME/
└ .config/
├ alacritty/
│ ├ alacritty.toml
│ └ themes/
│ ├ monokai.toml
│ ├ one_dark.toml
│ └ synthwave_84.toml
└ tmux/
└ tmux.conf
ファイルの内容 #
alacritty.toml
# https://alacritty.org/config-alacritty.html
[env]
# True Color
# curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh | bash
TERM = "xterm-256color"
[general]
import = ["~/.config/alacritty/themes/monokai.toml"]
[window]
decorations_theme_variant = "Dark"
startup_mode = "Maximized"
padding.x = 8
padding.y = 8
[font]
normal.family = "MesloLGM Nerd Font"
size = 14
monokai.toml
# https://github.com/alacritty/alacritty-theme/
[colors.primary]
background = "#272822"
foreground = "#f8f8f2"
[colors.normal]
black = "#272822"
red = "#f92672"
green = "#a6e22e"
yellow = "#f4bf75"
blue = "#66d9ef"
magenta = "#ae81ff"
cyan = "#a1efe4"
white = "#f8f8f2"
[colors.bright]
black = "#75715e"
red = "#f92672"
green = "#a6e22e"
yellow = "#f4bf75"
blue = "#66d9ef"
magenta = "#ae81ff"
cyan = "#a1efe4"
white = "#f9f8f5"
one_dark.toml
# https://github.com/alacritty/alacritty-theme/
[colors.primary]
background = '#282c34'
foreground = '#abb2bf'
[colors.normal]
black = '#1e2127'
red = '#e06c75'
green = '#98c379'
yellow = '#d19a66'
blue = '#61afef'
magenta = '#c678dd'
cyan = '#56b6c2'
white = '#abb2bf'
[colors.bright]
black = '#5c6370'
red = '#e06c75'
green = '#98c379'
yellow = '#d19a66'
blue = '#61afef'
magenta = '#c678dd'
cyan = '#56b6c2'
white = '#ffffff'
synthwave_84.toml
# https://github.com/alacritty/alacritty-theme/
[colors.primary]
foreground = "#ffffff"
background = "#262335"
[colors.normal]
black = "#262335"
red = "#fe4450"
green = "#72f1b8"
yellow = "#f3e70f"
blue = "#03edf9"
magenta = "#ff7edb"
cyan = "#03edf9"
white = "#ffffff"
[colors.bright]
black = "#614d85"
red = "#fe4450"
green = "#72f1b8"
yellow = "#fede5d"
blue = "#03edf9"
magenta = "#ff7edb"
cyan = "#03edf9"
white = "#ffffff"
tmux.conf
# マウス操作を有効にする
# - マウススクロールでログをスクロールする
# - マウスでテキスト選択するとコピーする
# - マウスでペインの境界をドラッグするとリサイズする
set-option -g mouse on
# ステータスバーを上部に表示
set-option -g status-justify centre
# ステータスバーを中央揃えにする
set-option -g status-position top
# ステータスバー左/右に何も表示しない
set-option -g status-left ""
set-option -g status-right ""
# ステータスバーの色を変える
set-option -g status-bg black
set-option -g status-fg white
# ウィンドウの番号を 1 から開始
set-option -g base-index 1
# ウィンドウを閉じた時に番号を詰める
set-option -g renumber-windows on
# キーバインドを設定する
bind-key -n C-t new-window
bind-key -n Home previous-window
bind-key -n End next-window