Add conf -> lua migration for Hyprland and update old migrations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user