Initial import: Lua config, trimmed omarchy scripts, theme system
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# archypr:summary=Install Helix and configure it to use the current Omarchy theme
|
||||
|
||||
echo "Installing Helix..."
|
||||
archypr-kg-add helix
|
||||
|
||||
mkdir -p ~/.config/helix/themes
|
||||
|
||||
# Symlink the rendered Omarchy theme so Helix tracks the active theme
|
||||
ln -sf ~/.config/archypr/current/theme/helix.toml ~/.config/helix/themes/omarchy.toml
|
||||
|
||||
# Only seed a config.toml if the user does not already have one
|
||||
if [[ ! -f ~/.config/helix/config.toml ]]; then
|
||||
cat >~/.config/helix/config.toml <<'EOF'
|
||||
theme = "omarchy"
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Ensure the symlink target exists for users whose current theme predates this template
|
||||
if [[ ! -e ~/.config/archypr/current/theme/helix.toml ]]; then
|
||||
archypr-theme-refresh
|
||||
fi
|
||||
|
||||
# Arch-based distros ship Helix as 'helix' rather than the upstream 'hx'.
|
||||
if ! grep -q '^alias hx="helix"' ~/.bashrc 2>/dev/null; then
|
||||
echo 'alias hx="helix"' >>~/.bashrc
|
||||
fi
|
||||
Reference in New Issue
Block a user