>>100213551 (Me)
>>100214189
I appreciate the suggestion but I went a different direction.
I used cron to run an instance of xautolock and used xautolock to run a script that kills my browser and reboots the system. I'm killing the browser just to have no persistence across browsing sessions. If I don't cleanly kill brave, it doesn't clear my browsing data like I like and that allows the next user to click restore on my prior session and a reboot does not cleanly kill brave so I have to kill brave myself. Dropping configs below just to give anyone else who is interested the deets:
root's crontab -e:
* * * * * xautolock -time 30 -locker /etc/cron.d/reboot.sh
content of /etc/cron.d/reboot.sh:
!#/bin/bash
pkill brave;
reboot
If you prefer not kill your browser, you can just use this crontab entry without the script:
* * * * * xautolock -time 30 -locker /usr/sbin/reboot