helix: Install with theme
This commit is contained in:
parent
802f16b0ea
commit
ca246e1c31
6 changed files with 30 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue