#!/usr/bin/env bash
pacman -Rns calamares-git --noconfirm
ln -sf /usr/lib/systemd/system/ly.service /etc/systemd/system/display-manager.service
# Hyprland should autostart from the tty - only for the live user
head -n -5 /home/*/.config/fish/config.fish > confish && mv confish ~/.config/fish/config.fish # won't work
sed -i '35d' /home/*/.config/hypr/hyprland.conf # don't autostart Calamares
rm -f /etc/systemd/system/getty@tty1.service.d/autologin.conf # Remove getty service too, ly supersedes this
rm -f /etc/systemd/system/multi-user.target.wants/getty@tty2.service
rm -f /etc/systemd/system/autologin@.service
# Clean up
rm -f /usr/local/bin/enable-display-manager
