Curbing my Steam Deck addiction
I, like roughly 6 million other people own a Steam Deck. Unlike other people, I have an eye problem meaning I cannot stay on it for too long, and the actual Steam Deck is very heavy for my wrists. Games are also addictive as hell.
To stop holding it for too long I invested in a pretty cheap Steam Deck dock, which allows me to connect it to my much bigger TV. The second solution to preventing myself from playing for too long is to set up a systemd service to kill the Steam Deck after an hour. The script below can be copied and pasted into the /etc/systemctl directory and enabled using sudo systemctl enable <name>.service - allowing it to run every time the Steam Deck boots up.
[Unit]
Description="Shut down the Steam deck after an hour."
[Service]
Restart=no
Type=oneshot
ExecStart=shutdown +60