I have a couple of services running in a GNU-screen session on top of Bash. Because one of the services contain sensitive data I have to constantly either close the terminal completely or lock the screen session using
C^a X. Sometimes I forget to close or lock this window when leaving my desk which is not good so I want to know.
How can I get GNU-screen to automatically lock the window after XX minutes of non-use or get Bash/terminal emulator to execute the
C^a X command after a time interval? I am aware I can lock the screen using the window manager, but I would like this in addition just in case.