Hyprland-dotfiles/sddm/scripts/disable.sh

13 lines
395 B
Bash
Raw Normal View History

2023-12-20 05:46:07 -05:00
#!/bin/bash
2024-02-19 12:14:24 -05:00
figlet "Disable SDDM"
2023-12-20 05:46:07 -05:00
if [ -f /etc/systemd/system/display-manager.service ]; then
if gum confirm "Do you want to disable the current display manager?" ;then
sudo rm /etc/systemd/system/display-manager.service
2024-02-19 15:32:23 -05:00
echo ":: Current display manager removed."
echo ":: Please reboot your system."
2023-12-20 05:46:07 -05:00
fi
else
2024-02-19 15:32:23 -05:00
echo ":: No Display Manager enabled."
2023-12-20 05:46:07 -05:00
fi
2024-02-19 12:14:24 -05:00
sleep 3