In some distros there is a hotkey that opens a dialog box to run a terminal command.

Does this exist in elementary OS, and if so what's the hotkey? If not, how can I add a custom hotkey?

  • I have added an answer (and remember to mark it as answer if it works)
    – Suici Doga
    May 21 '16 at 10:12
  • I have added another answer (and remember to mark it as answer if it works)
    – Suici Doga
    May 21 '16 at 10:35

Slingshot is also that: a dialog box to run a command.

Press ALT + F2 , type the command and press ENTER

Another shortcut is Super + Space

enter image description here

  • no, open de aplication menu, slingshot I think is the name.
    – koxmoz
    May 21 '16 at 10:30
  • @koxmoz Do you want to not open the application menu
    – Suici Doga
    May 21 '16 at 10:32
  • @SuiciDoga - isn't Super-Space the default to launch slingshot? why alt-f2? is there a difference (I mean beside this one)?
    – user170
    Jan 25 '17 at 10:14
  • @koxmoz - Slingshot is exactly what you ask for: a dialog box to run a command. That is triggered by Super-Space (default; can be changed). If you want a terminal command (as you said, but by mistake I guess), use Super-T for the terminal.
    – user170
    Jan 25 '17 at 10:17

Like in elementary don't exists that option. so I create the file:


This is the script:

#! /bin/bash
## Zenity
command=`zenity --title "Run commands" --entry --text "Command"`
## Bash
eval $command

save and change the permission

chmod +x ~/bin/run

then set a custom shortcut in Preference > keyboard > Shortcut > Custom

| command | keys      |
| run     | Super + R |

that's it! enjoy .


Press Windows + T or CTRL + ALT + T to open a terminal. Then type the command and press ENTER to run it

  • question edited for more info..
    – koxmoz
    May 21 '16 at 11:12
  • @koxmoz I gave you the shortcut key
    – Suici Doga
    May 21 '16 at 11:15
  • thats not what I'm looking for, If I run a command that open a daemon like dropbox, when I close the terminal, close the daemon.
    – koxmoz
    May 21 '16 at 11:20
  • @koxmoz Then just add ` & disown` to the end of the command and then close the terminal.Mark this as answer if it works
    – Suici Doga
    May 21 '16 at 11:28
  • so, there is no dialog box for that in Elementary.
    – koxmoz
    May 21 '16 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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