1
0
Fork 0

helix: Install with theme

This commit is contained in:
Jeremy Kaplan 2026-04-29 21:32:42 -07:00
commit ca246e1c31
6 changed files with 30 additions and 7 deletions

View file

@ -15,7 +15,7 @@ install_dark() {
ln -sf "${DOTFILES}/vim/colors/jdkaplan-dark.vim" "${DOTFILES}/vim/colors/jdkaplan.vim"
ln -sf "${DOTFILES}/neovim/colors/jdkaplan-cool.lua" "${DOTFILES}/neovim/colors/jdkaplan-temp.lua"
cat "${DOTFILES}/helix/dark.toml" "${DOTFILES}/helix/main.toml" > "${DOTFILES}/helix/config.toml"
"${DOTFILES}/helix/install" dark
if [ "${OSTYPE}" == 'Linux' ]; then
ln -sf "${DOTFILES}/xsettingsd/xsettingsd-dark.conf" "${DOTFILES}/xsettingsd/xsettingsd.conf"
@ -35,7 +35,7 @@ install_light() {
ln -sf "${DOTFILES}/vim/colors/jdkaplan-light.vim" "${DOTFILES}/vim/colors/jdkaplan.vim"
ln -sf "${DOTFILES}/neovim/colors/jdkaplan-warm.lua" "${DOTFILES}/neovim/colors/jdkaplan-temp.lua"
cat "${DOTFILES}/helix/light.toml" "${DOTFILES}/helix/main.toml" > "${DOTFILES}/helix/config.toml"
"${DOTFILES}/helix/install" light
if [ "${OSTYPE}" == 'Linux' ]; then
ln -sf "${DOTFILES}/xsettingsd/xsettingsd-light.conf" "${DOTFILES}/xsettingsd/xsettingsd.conf"
@ -54,6 +54,9 @@ postinstall() {
# to trigger the reload.
touch "${DOTFILES}/alacritty/alacritty.toml"
# Helix reloads the config in response to SIGUSR1.
pkill -USR1 helix || true
if [ "${OSTYPE}" == 'Linux' ]; then
killall --signal HUP xsettingsd
fi