Hi I already tried all solution from execute-a-command-on-user-logon, and used PostLogin option of GDM.... The problem is all of these option are only works when system boots up but it's not what I Ask.
I want an script execute everytime user unlocking his/her account after awakening from suspension.
I Already used systemd and udev but they are not the solution because
- My script have depend on X so I have to be sure that X is already started
- The script should run as the user that login not root.
I use GDM 3.20 on Arch Linux
I dont realy care if the script runs before login (for example script run for all avalible user)