Hyprland-dotfiles/.install/reboot.sh
Stephan Raabe 45bea3effa Updates
2024-05-27 17:46:33 +02:00

19 lines
461 B
Bash

# ------------------------------------------------------
# Reboot
# ------------------------------------------------------
echo -e "${GREEN}"
figlet "Reboot"
echo -e "${NONE}"
echo "A reboot of your system is recommended."
echo
if gum confirm "Do you want to reboot your system now?" ;then
gum spin --spinner dot --title "Rebooting now..." -- sleep 3
systemctl reboot
elif [ $? -eq 130 ]; then
exit 130
else
echo ":: Reboot skipped"
fi
echo ""