I have installed mpd and ncmpcpp, controlling it via terminal is fairly easy:
ncmpcpp toggle # Toggles play/pause
But when I try to make the same trick with Alfred Workflow (Trigger: Hotkey --- Action: Run Script --- Output: Post Notification) with this shell script:
ncmpcpp toggle
or
sh /path/to/myscript.sh
---------------------------------------------------
#!/bin/bash
ncmpcpp toggle
...only notification pops out.
Same thing happens with Automator.
So, how can I control ncmpcpp via Alfred 2?