Heya.
This is a really weird issue I'm facing.
If I call loginctl suspend from the command line, it works perfectly fine, I press a key and the system wakes up. Cool.
if I call it from a keybind defined in openbox's rc file, it also works fine.
if I call it from within a bash script ( with it being the only thing being called ) that gets called from within openbox's rc file, it does suspend, I press a key to wake my pc up, it wakes up and immediately suspends again. If I press a key again, it wakes up normally.
I added some date calls inside the script, and can confirm it is indeed run twice. one when I call it, and the system suspends, and another when I wake up the system...
Can anyone point me to what is happening here?

