hyprland-dotfiles/sddm/scripts/disable.sh

12 lines
370 B
Bash
Raw Normal View History

2023-12-20 10:46:07 +00:00
#!/bin/bash
2024-02-19 17:14:24 +00:00
figlet "Disable SDDM"
2023-12-20 10:46:07 +00: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
echo "Current display manager removed. Please reboot your system."
fi
else
2024-02-19 17:14:24 +00:00
echo "No display manager enabled."
2023-12-20 10:46:07 +00:00
fi
2024-02-19 17:14:24 +00:00
sleep 3