Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to create a bash script for the Dash home button, as I am trying to fully replace the Unity dock with the Cairo Dock. Unfortunately, I have been unable to make it so that the script only runs when I click on it.

How can I make a bash script execute when clicked upon?

If it helps, here is my code:


xdotool key Super
share|improve this question

1 Answer 1

The shebang is wrong, type this instead :


xdotool key Super

and set the execution bit on the script.

share|improve this answer
set the eXecution bit by opening Terminal and typing sudo chmod +x <path/to/bash_file.bsh> –  SimplySimon Jun 15 '13 at 21:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.