2025-07-13 20:51:03 -04:00
|
|
|
echo "Update to use UWSM and seamless login"
|
2025-07-20 17:36:29 -05:00
|
|
|
if ! command -v uwsm &>/dev/null; then
|
|
|
|
sudo rm -f /etc/systemd/system/getty@tty1.service.d/override.conf
|
|
|
|
sudo rmdir /etc/systemd/system/getty@tty1.service.d/ 2>/dev/null || true
|
2025-07-13 20:51:03 -04:00
|
|
|
|
2025-07-20 17:36:29 -05:00
|
|
|
if [ -f "$HOME/.bash_profile" ]; then
|
|
|
|
# Remove the specific line
|
|
|
|
sed -i '/^\[\[ -z \$DISPLAY && \$(tty) == \/dev\/tty1 \]\] && exec Hyprland$/d' "$HOME/.bash_profile"
|
|
|
|
echo "Cleaned up .bash_profile"
|
|
|
|
fi
|
2025-07-13 20:51:03 -04:00
|
|
|
|
2025-07-20 17:36:29 -05:00
|
|
|
if [ -f "$HOME/.config/environment.d/fcitx.conf" ]; then
|
|
|
|
echo "Removing GTK_IM_MODULE from fcitx config for Wayland..."
|
|
|
|
sed -i 's/^GTK_IM_MODULE=fcitx$//' "$HOME/.config/environment.d/fcitx.conf"
|
|
|
|
fi
|
2025-07-13 20:51:03 -04:00
|
|
|
|
2025-07-26 16:48:45 -04:00
|
|
|
source ~/.local/share/omarchy/install/config/login.sh
|
2025-07-20 17:36:29 -05:00
|
|
|
fi
|