Nudge running Hunk sessions to pick up new theme colors (#13518)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
324f0ba5e6
commit
4ba4a53209
3 files changed
+42
No files matched your search
@@ -424,6 +424,7 @@ post_theme_commands=(
|
||||
omarchy-restart-helix
|
||||
omarchy-theme-set-foot
|
||||
omarchy-theme-set-tmux
|
||||
omarchy-theme-set-hunk
|
||||
omarchy-theme-set-gnome
|
||||
omarchy-theme-set-pi
|
||||
omarchy-theme-set-claude
|
||||
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# omarchy:summary=Tell running Hunk sessions to pick up the new terminal colors
|
||||
# omarchy:hidden=true
|
||||
|
||||
# Hunk's default terminal theme re-reads the terminal palette on SIGWINCH. Terminals reload
|
||||
# their colors in parallel with this hook, so nudge once now and once after they have settled;
|
||||
# Hunk only repaints when the palette actually changed.
|
||||
|
||||
if pgrep -x hunk >/dev/null; then
|
||||
pkill -WINCH -x hunk
|
||||
sleep 1
|
||||
pkill -WINCH -x hunk
|
||||
fi
|
||||
Reference in new issue
Block a user