Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,31 @@ repos:
hooks:
- id: stylua

# p10k.zsh is generated by `p10k configure` and uses zsh-only constructs
# (e.g. `() { … }` anonymous functions) that shellcheck and shfmt — both
# bash-targeted — can't parse, leading to false positives or destructive
# reformats. Excluded narrowly; other hand-written .zsh files in this repo
# stay POSIX/bash-compatible and remain in scope.
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
exclude: '\.tmpl$'
exclude: '\.tmpl$|p10k\.zsh$'

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.13.1-1
hooks:
- id: shfmt
exclude: '\.tmpl$'
exclude: '\.tmpl$|p10k\.zsh$'

- repo: https://github.com/crate-ci/typos
rev: v1
hooks:
- id: typos
# Same file: p10k's generated tokens trip typos' English-typo
# heuristics and get rewritten destructively. The file is regenerated
# by `p10k configure`, so an inline allow-list would rot.
exclude: 'p10k\.zsh$'

- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
Expand Down
27 changes: 23 additions & 4 deletions dot_config/alacritty/alacritty.toml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
import = ["~/.config/alacritty/catppuccin-macchiato.toml", "~/.config/alacritty/key_bindings.toml"]
live_config_reload = true

[colors]
# Apply window.opacity to every cell, not just those using the default
# background. Without this, tmux's themed pane backgrounds (status bar,
# dim-inactive-panes) paint opaque and defeat the see-through effect.
transparent_background_colors = true

[env]
TERM = "xterm-256color"

Expand Down Expand Up @@ -69,9 +75,22 @@ args = [
]

[window]
decorations = "none"
startup_mode = "Fullscreen"
{{- if eq .chezmoi.os "darwin" }}
# Buttonless keeps the native macOS title-bar area (so opacity/blur
# bleed through it for a uniform frosted-glass look) but hides the
# traffic-light buttons, freeing the top-left for tmux's status bar.
decorations = "Buttonless"
# Left option sends Esc-prefix so emacs-style Alt-bindings reach the
# shell (e.g. fzf-cd-widget on Alt+C). Right option still composes
# accents.
option_as_alt = "OnlyLeft"
{{- else }}
decorations = "Full"
{{- end }}
opacity = 0.7
# blur only takes effect on macOS / KDE Wayland; harmless no-op elsewhere
blur = true

[window.padding]
x = 6
y = 6
x = 3
y = 3
Loading
Loading