So I'm back with the way with wmctrl (I found why it didn't work fine: wmctrl requires OPTIONS to be passed before ACTIONS) In the patch below, replace "Énergie" with the title of the popup in your language.
** Attachment added: "myscripts2" https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1232454/+attachment/3950033/+files/myscripts2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1232454 Title: "Computer will suspend very soon because of inactivity." dialog when resuming from suspend To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-settings-daemon/+bug/1232454/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs