aboutsummaryrefslogtreecommitdiff
path: root/githooks
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-25 13:14:40 -0500
committerCraig Jennings <c@cjennings.net>2026-05-25 13:14:40 -0500
commitdc14473b9260cf63157e287d4216ddd69ff2bca7 (patch)
tree716ff95a0ae0fece2cc242845695e4135815cf82 /githooks
parentf4a20ca16045b3d3809dc3263a1e7c6b4657eead (diff)
downloaddotemacs-dc14473b9260cf63157e287d4216ddd69ff2bca7.tar.gz
dotemacs-dc14473b9260cf63157e287d4216ddd69ff2bca7.zip
feat(auto-dim): dim vterm windows by blending terminal colors
Window dimming via face-remap never reached vterm. The terminal resolves its own colors per cell while redrawing, so it bypasses the remapped faces, and agent and shell windows stayed bright when they lost focus. I advise vterm--get-color to blend each looked-up color toward the auto-dim faces whenever every window showing the buffer is dimmed. The foreground and background blend amounts are separate defcustoms (foreground stays more legible, background fades harder). After a dim-state change I force a full vterm repaint by briefly nudging the terminal size, because vterm only repaints the rows libvterm marked dirty. A post-command hook and a select-window advice cover the windmove and Shift-arrow focus paths that window-selection-change-functions misses. Tests cover the dimmed-buffer predicate, the color blend, the selection-change scheduling, and the auto-dim-before-repaint ordering.
Diffstat (limited to 'githooks')
0 files changed, 0 insertions, 0 deletions