Results 1 to 2 of 2

Thread: Tip of the day - A Poor man's Alt+F2 -> Alt+F3

  1. #1
    Join Date
    Jan 2007
    Ubuntu 12.04 Precise Pangolin

    Thumbs up Tip of the day - A Poor man's Alt+F2 -> Alt+F3

    If you for any reason, be it security, be it speed, prefer not to use Ubuntu dash, you can create of course your own shortcut.

    sudo apt-get install zenity

    Store this script under e.g. ~/myscripts/
    program=$(zenity --entry --text "Please, enter program to execute:" --title "Run command... (Alt+F2)")
    if [ $? == 0 ]; then
    	$program &
    Test it on the command-line.

    Go to:
    • System Settings -> Keyboard (under Hardware) -> Shortcuts
    • Custom Shortcuts
    • The +-box at the bottom.

    Name: "Poor man Alt+F2" or whatever you like, Command: ~/myscripts/ Click the thing after you created and assign the Alt+F3 command.

    Of course, this is trivial to anyone who has more than a few months experience with Ubuntu. However, maybe you were caught up in other things. I really hate to use the mouse. Just typing "google-chrome" in a box is much quicker for me than navigating the menus or waiting for the Dash. Especially, when it has bugs that applications are not actually started because I don't type slow enough...

    Also very important to me to: Alt+F3 is very close to Alt+F2, so I had to readjust my fine motor skills only slightly. And it's quicker than typing Ctrl+Alt+T, background the processing, and closing the terminal again.

    Edit: By the way if setting the key shortcut doesn't work because of some quirk of Ubuntu. You can use for example "ccsm" to create this shortcut. Be careful though, "ccsm" can break your system, so don't start fooling around. In General - Commands - Command line 0 you can set the link to the script, and in the tab "Key Bindings" you can set the Alt+F3 key.
    Last edited by MrQuincle; February 2nd, 2013 at 12:20 PM.

  2. #2
    Join Date
    Jul 2006

    Re: Tip of the day - A Poor man's Alt+F2 -> Alt+F3

    Why not use gmrun instead? It has more features that this script, as you can use its searchable history of commands and it can autocomplete commands (press TAB).

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts