Comment
Comment by quicklywilliam
Great idea and implementation! If you are hesitant to install this for any reason, you can accomplish the same thing with this one liner:
Edit: here's a shortcut to run the above and then lock your screen. You can give it a global keyboard shortcut in the Shortcuts app.
https://www.icloud.com/shortcuts/9362945d839140dbbf987e5bce9...