I have a shell script in my home directory that lets me control spotify and I'm trying to use it with these lines in my i3 config.
bindsym X86AudioPlay exec sh /home/kviktor/spotify-control play bindsym X86AudioNext exec sh /home/kviktor/spotify-control next bindsym X86AudioPrev exec sh /home/kviktor/spotify-control prev
(The script can be found on GitHub)
The commands work reliably, when started from a shell. However they do not always work when using the key bindings. Sometimes this image pops and nothing else happens:
I'm on Ubuntu 12.04 and i3 version 4.7.2 (2014-01-23, branch "tags/4.7.2"). Spotify is started with
exec from my i3 configuration. I also have gnome-settings-daemon running.