Gmrun

Gmrun (Gnome Completion-Run) is an lightweight application launcher similar to GNOME Run, Application Finder, KRunner, etc.

Installation

Gmrun can be installed with the package gmrun. A multihead aware version can be installed with the gmrun-multiheadAUR package.

Usage

  • GUI applications can just be typed in and run by pressing Enter, terminal applications can be run by using Ctrl+Enter. Pressing Ctrl+Enter with an empty input box will open up a terminal window.
  • Gmrun features tab completion: pressing tab will bring up a scrollable list of possible matches.
  • Web addresses entered into Gmrun will launch a web browser automatically.
  • The same goes for email addresses, using the mailto: prefix e.g. mailto:foo@bar.com, will launch your email client.
  • More shortcuts can be added to ~/.gmrunrc (See #Configuration below) or you can modify the system-wide file at /etc/gmrunc.
  • You can enter search mode by entering ! as the first letter, the title should change from Run program to Search, letters you input will then automatically come up with suggestions from your command history.
  • will allow you to search backwards through that history.
  • will search forward through the history.
  • will cancel the search.
  • If an extension has been defined in the configuration file, files can be launched by the correct program just by typing the file name.
  • Press to close Gmrun, without running anything.

Configuration

The configuration file is located at but you can create a per-user configuration (recommended) in ~/.gmrunrc. Please note that is expanded to the full command entered, %s is the last part after the shortcut (e.g. if you enter the URL https://archlinux.org, would keep https://archlinux.org and %s would shorten to . )

Here is an example configuration file.

ShowDotFiles (1 or 0)
whether to show dotfiles (e.g. ) in the auto-complete menu.
TabTimeout (1 or 0)
Whether to show the tab complete menu automatically when something is inputted.
Terminal
The command to run when Ctrl+Enter is pressed without other input.
TermExec
The command to run when running a specific command in the terminal (e.g. ).
URL_http
The command to run when a web address is entered.
URL_mailto
The command to run when an email address is entered.
EXT
extension: The application to open files with a certain extension.
Top and Left
The placement of the Gmrun window (in pixels from the respective edge).
Width
The width in pixels of the window.
History
Length of command history that is stored.

Adding custom shortcuts

Shortcuts can easily be added. For example, to use g as a shortcut for Google searches, add:

URL_g = firefox 'https://www.google.com/search?q=%25s'

Which is then used like this:

g:Arch

Key bindings

You can use your desktop environment's or window manager's keybinding settings to set one for Gmrun.

gollark: And some other stuff.
gollark: Yes. It's very internal. We use certain avian and apian carriers, as well as ideatic-space hypermemetic transceivers.
gollark: I'm sure you'd like to think that I'd like to think so.
gollark: Except when one temporarily became a dodecahedron.
gollark: They report their status every 22us to GTechâ„¢'s internal network and also work perfectly.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.