Run commands “without” terminal

Months ago I saw a guy running commands from a small, textbox-like window, showing nothing else other than the box for you to write the command. It would popup by pressing some keyboard shortcut. Specifically, from what I remember, he was using Lubuntu, and mostly opening apps (like Chrome, Audacious, etc.).

Is it a known extension for lxde or did he most probably create it by himself?

Thanks everyone!

EDIT: some guys recommended Alt + F2, but nothing happens.


Solution 1:

Alt + F2 worked for me (i know you suggested it didn't work for you, however its worth reinforcing for others!).

Kubuntu 15.04

Solution 2:

This type of GUI for running commands is basically known as "Run" interface. It's fairly simple idea.

In the Ubuntu's Unity environment Alt+F2 allows running specific commands using the default shell, dash or Debian Amquist Shell. Of course, you have to remember that you are running commands "blindly", meaning without the STDOUT output from command or STDERR streams going. So unless you are running a GUI app, you won't know if your command failed or not.

There are tweaks for Gnome desktop environment to utilise the same keybinding as well, which if I am not mistaken , can be configured using from Gnome Tweak Tool

For blackbox desktop environment there exists bbrun package, which also does very much the same functionality.

At the very bottom of things, one could build such tool by themselves, using any programming language available or desired. For instance, here's some examples

Shell script + zenity

#!/bin/sh
exec $(zenity --entry --title "Enter command" --text "") 

Java:

//runSomething.java
import javax.swing.JOptionPane;
import java.lang.Runtime;
import java.io.IOException;
public class runSomething
{
 public static void main(String [] args) throws IOException
 {
  String cmd = JOptionPane.showInputDialog("Enter command:");
  Runtime.getRuntime().exec(cmd); 
 }
}