I was just reading the reference manual written by David Z for pkexec on freedesktop.org:
https://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html
and
https://www.freedesktop.org/software/polkit/docs/latest/pkexec.1.html
Manual says that using the auth_admin_keep option will only keep your password for 5 to 15 minutes and that if we want to set custom timeouts we have write custom rules.
Would anyone know how I can go about writing a custom rules for the timeout? I tried to follow along with the manual but I'm not a coder and I wasn't being able to understand the synthax, no were there any mentions made of timeout related synthax.