I found a quick and dirty work around. The problem is a race condition, so we insert a delay to allow the XEvent to be processed.
$ echo '#!/bin/sh sleep 0.1s && diodon' > diodon-delay $ chmod +x diodon-delay $ sudo mv diodon-delay /usr/bin/diodon-delay
Then setup a shortcut for /usr/bin/diodon-delay. This worked for me on Ubuntu 17.10.
I found a quick and dirty work around. The problem is a race condition, so we insert a delay to allow the XEvent to be processed.
$ echo '#!/bin/sh diodon- delay
sleep 0.1s && diodon' > diodon-delay
$ chmod +x diodon-delay
$ sudo mv diodon-delay /usr/bin/
Then setup a shortcut for /usr/bin/ diodon- delay. This worked for me on Ubuntu 17.10.