Hyprland-dotfiles/.install/reboot.sh

19 lines
461 B
Bash
Raw Normal View History

2024-03-20 05:10:25 -04:00
# ------------------------------------------------------
# Reboot
# ------------------------------------------------------
echo -e "${GREEN}"
2024-03-20 07:59:44 -04:00
figlet "Reboot"
2024-03-20 05:10:25 -04:00
echo -e "${NONE}"
2024-03-20 07:59:44 -04:00
echo "A reboot of your system is recommended."
2024-05-27 11:30:11 -04:00
echo
2024-03-20 05:10:25 -04:00
if gum confirm "Do you want to reboot your system now?" ;then
2024-05-27 11:46:33 -04:00
gum spin --spinner dot --title "Rebooting now..." -- sleep 3
2024-03-20 05:10:25 -04:00
systemctl reboot
elif [ $? -eq 130 ]; then
exit 130
else
echo ":: Reboot skipped"
fi
echo ""