hyprland-dotfiles/sddm/scripts/disable.sh

13 lines
395 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
2024-02-19 20:32:23 +00:00
echo ":: Current display manager removed."
echo ":: Please reboot your system."
2023-12-20 10:46:07 +00:00
fi
else
2024-02-19 20:32:23 +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