feat: refresh alacritty + powerlevel10k look#20
Merged
Conversation
c57b9c8 to
279e26c
Compare
Adds transparency (opacity 0.7) and window blur on macOS so the desktop wallpaper softly shows through, plus `transparent_background_colors` so cells with theme-painted backgrounds (tmux's catppuccin pane backgrounds, status bar) also respect opacity instead of rendering opaque. Drops `decorations = "none"` in favor of `Buttonless` on macOS — the native title-bar area is preserved (so opacity/blur stay uniform top to bottom) but the close/min/max traffic lights are hidden, freeing the top-left for tmux's status bar. Falls back to `Full` on non-macOS. Drops `startup_mode = "Fullscreen"` so a tiling WM can own placement on launch (a separate AeroSpace branch will land that). Without a WM the window opens at its default size. Maps left option to Alt on macOS so emacs-style Alt-bindings reach the shell (e.g. fzf-cd-widget on Alt+C). Right option still composes accents. Tightens window padding from 6x/6y to 3x/3y for a denser content area. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Brings the Powerlevel10k generated config under chezmoi management
with a small, opinionated set of tweaks layered on the upstream
p10k-lean.zsh template. The pre-commit-config exclude lands in the
same commit because the exclude is only meaningful once the file it
references is tracked.
Layout: dir on the LEFT (with prompt_char), vcs on the RIGHT.
Right-prompt segments trimmed from 40+ to: status,
command_execution_time, vcs, background_jobs, aws, nix_shell, time.
Prompt char: `>` green on success, `✗` red on error.
Git status uses Nerd Font Font Awesome icons throughout — branch
(fa-code-branch), modified (fa-pencil), staged (fa-plus), untracked
(fa-question), conflicted (fa-warning), ahead (fa-arrow-up), behind
(fa-arrow-down), stashed (fa-inbox). Status colors (76 / 178 / 39 /
196) match p10k's defaults.
`command_execution_time` and `time` render in plain white; time is
trimmed to `%H:%M`. Italic was attempted via raw escape codes wrapped
in zsh `%{…%}` zero-width markers, but p10k pre-expands these
settings via `${(%)…}` before assembling the prompt — that pass
consumes the markers and leaves bare bytes behind, which zsh then
counts as visible width and breaks cursor positioning. Italic in p10k
requires a custom prompt-segment function; deferred as out of scope.
Pre-commit excludes: p10k.zsh is generated and uses zsh-only
constructs (e.g. anonymous `() { … }` functions) that shellcheck and
shfmt can't parse; typos misidentifies p10k flag tokens as
misspellings. Excluded narrowly — the file is regenerated by
`p10k configure`, so an inline allow-list would rot.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
f85ee8a to
0686ed9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refreshes the Alacritty + Powerlevel10k look. Alacritty gets transparency (opacity 0.7) and blur on macOS, Transparent decorations so the title bar picks up the frosted-glass texture, left option mapped to Alt for shell bindings, and padding at 3x/3y. Powerlevel10k is brought under chezmoi management and restyled to mirror Starship's lean look — directory and git status on the right, simple ◎/○ prompt char, starship-style git symbols. The generated p10k.zsh is excluded from shellcheck/shfmt/typos. Window placement is intentionally left to a tiling WM (AeroSpace scaffolded on a follow-up branch).
Test plan
chezmoi apply -S "$PWD", relaunch Alacritty, confirm: transparency/blur, frosted title bar, prompt looks like Starship in a dirty git repo, left option triggers shell shortcuts like fzf-cd-widget on Alt+C.