Skip to content

feat: refresh alacritty + powerlevel10k look#20

Merged
chagui merged 2 commits into
mainfrom
chagui/alacritty/refreshing-look
Apr 26, 2026
Merged

feat: refresh alacritty + powerlevel10k look#20
chagui merged 2 commits into
mainfrom
chagui/alacritty/refreshing-look

Conversation

@chagui
Copy link
Copy Markdown
Owner

@chagui chagui commented Apr 26, 2026

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.

@chagui chagui force-pushed the chagui/alacritty/refreshing-look branch from c57b9c8 to 279e26c Compare April 26, 2026 11:35
chagui and others added 2 commits April 26, 2026 13:49
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>
@chagui chagui force-pushed the chagui/alacritty/refreshing-look branch from f85ee8a to 0686ed9 Compare April 26, 2026 11:50
@chagui chagui merged commit ef81614 into main Apr 26, 2026
1 check passed
@chagui chagui deleted the chagui/alacritty/refreshing-look branch April 26, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant