Add conf -> lua migration for Hyprland and update old migrations

This commit is contained in:
Ryan Hughes
2026-05-11 10:39:22 -04:00
parent 59a2619426
commit 82a1a91509
3 changed files with 98 additions and 10 deletions
+3 -8
View File
@@ -1,10 +1,5 @@
echo "Ensure .config/hypr/looknfeel.conf is available and included"
echo "Ensure .config/hypr/looknfeel.lua is available"
if [[ ! -f ~/.config/hypr/looknfeel.conf ]]; then
cp $OMARCHY_PATH/config/hypr/looknfeel.conf ~/.config/hypr/looknfeel.conf
fi
if [[ -f ~/.config/hypr/hyprland.conf ]]; then
grep -qx 'source = ~/.config/hypr/looknfeel.conf' ~/.config/hypr/hyprland.conf ||
sed -i '/^source = ~\/.config\/hypr\/envs\.conf$/a source = ~/.config/hypr/looknfeel.conf' ~/.config/hypr/hyprland.conf
if [[ ! -f ~/.config/hypr/looknfeel.lua ]]; then
cp "$OMARCHY_PATH/config/hypr/looknfeel.lua" ~/.config/hypr/looknfeel.lua
fi