Using the excellent answers from this thread I've been able to schedule booting into different OSes at different times of day.
However, I would like to get the community's advice on how to boot into Ubuntu on weekdays and Windows on weekends, without trial-and-erroring myself into a bricked laptop.
/boot/grub/custom.cfg looks like this:
insmod datehook if [ $MINUTE -lt 10 ]; then PADDING="0"; else PADDING=""; fi TIME=$HOUR$PADDING$MINUTE if [ $TIME -ge 0 -a $TIME -lt 559 ]; then set default="Windows Boot Manager (on /dev/nvme0n1p2)" fi if [ $TIME -ge 1000 -a $TIME -lt 1659 ]; then set default="Ubuntu" fi if [ $TIME -ge 1700 -a $TIME -lt 2359 ]; then set default="Windows Boot Manager (on /dev/nvme0n1p2)" fi
Even if someone knows about a sandbox mode which will allow me to trial-and-error my way to an answer that'd be great, but I'd also appreciate some best-practice input from the community.