I need to run my custom script
#!/bin/sh sudo protonvpn c -r
NOT after boot!
NOT after restart!
NOT just after wakeup!
AFTER login (when I entered my user password after a wakeup)
Why I do not want to run the script after wakeup (before login)?
Yes, I can place the script to the /lib/systemd/system-sleep/ directory. But I get the following error:
systemd-sleep: [!] There has been no profile initialized yet. Please run 'protonvpn init'.
The error means that I must run the command AFTER login.
How to run the script (a single terminal command) AFTER I logged in after wakeup?
In other words, where is the directory or a file where I can place my script or add a terminal command?