Topic: Getting a little more out of GMRun (A-F2)

The box that pops up to launch an app when you hit Alt - F2 is gmrun.

Crunchbang, or at least my version of it (this may have changed) doesn't ship with a gmrun config file.  It's got the /usr/share/gmrun/gmrunrc symlink but not /etc/gmrunrc or ~/.gmrunrc

I'm getting a little more out of gmrun with the following config

Terminal = terminator
TermExec = terminator --command
URL_http = /usr/bin/firefox %u

It works the same way regardless of location, so you can add it to either /etc/gmrunrc or ~/.gmrunrc.

Why bother?  Now Alt+F2 to open the gmrun dialog, then:
   1) type htop (or whatever), then Ctrl + Enter ==> Terminator will open running htop (or whatever)

   2) leave the dialog blank and hit Ctrl + Enter ==> just Terminator ready to go (an openbox keyboard binding is better but worth point out you've got this now)

   3) http://example.com ==> Firefox opens with example.com loaded

I think you can add your own URL link for anything you want with that general format (say ftp to gFTP for example)

Hopefully that helps someone.  Now if only the alt+f2 binding worked all the time...

FHSM: avoid vowels and exotic consonants and you'll get your handle every time.  identi.ca

Re: Getting a little more out of GMRun (A-F2)

Great tip, thank you for sharing! smile

Re: Getting a little more out of GMRun (A-F2)

O.O nice find!

So could I, say... Crunchbang = /usr/bin/firefox-3.6 http://crunchbangforums.org/forums

Why haven't I ever thought of that, nifty way to quickly open up a browser to the forums.

I view KDE like I view snow. It looks fun and marvelous, it's fun to play in, but after a while I just want someone to take it all away.

Re: Getting a little more out of GMRun (A-F2)

kBang wrote:

O.O nice find!

So could I, say... Crunchbang = /usr/bin/firefox-3.6 http://crunchbangforums.org/forums

Why haven't I ever thought of that, nifty way to quickly open up a browser to the forums.


It's not like a bashrc file it doesn't do aliasing.  Instead it has support for url handling and a few others things.  So you'd have to make #! a protocol with something like

URL_cb = /usr/bin/firefox http://crunchbanglinux.org/forums/

then run it by typing cb:// into the dialog box.

Bit of a hack, but I kind of like the idea of a #! protocol.

FHSM: avoid vowels and exotic consonants and you'll get your handle every time.  identi.ca

Re: Getting a little more out of GMRun (A-F2)

This is pretty cool, thank you for sharing smile

Re: Getting a little more out of GMRun (A-F2)

You, sir, have just given me the reason I've been looking for to ditch Gnome-Do and pick up this little app for good. I never really looked into the customization of gmrun before -- looks neat.

Re: Getting a little more out of GMRun (A-F2)

This is fantastic. It's been a week since I amped up gmrun and now I use it for everything.
Thanks, fhsm.

Re: Getting a little more out of GMRun (A-F2)

karthik wrote:

This is fantastic. It's been a week since I amped up gmrun and now I use it for everything.
Thanks, fhsm.

Did you happen to make any other changes? what does your config look like now?

Re: Getting a little more out of GMRun (A-F2)

Excellent

Registered Linux user #488058  > Get counted at http://counter.li.org
---------------------------------------------------------------------------------------------------
--------------                Ignorance is Bliss              -----------------#!#!#!

Re: Getting a little more out of GMRun (A-F2)

evhan wrote:
karthik wrote:

This is fantastic. It's been a week since I amped up gmrun and now I use it for everything.
Thanks, fhsm.

Did you happen to make any other changes? what does your config look like now?

No, I haven't made any changes. gmrun works perfectly as a launcher for me because I tend to use terminal applications for almost all general purposes: elinks, mcabber(IM), mocp, irssi, vim, hnb(notebook) and a dozen other custom scripts for odd jobs (downloading flash videos, mass renaming, pdf manipulation, mp3 tagging, etc). Ctrl+Enter is proving to be very useful for these things.

Re: Getting a little more out of GMRun (A-F2)

If anyone has additions to the config I posted I'd be interested in seeing what you've done.

FHSM: avoid vowels and exotic consonants and you'll get your handle every time.  identi.ca

Re: Getting a little more out of GMRun (A-F2)

I added the following line to search google from the desktop.

URL_gg = firefox http://www.google.com/search?q='%s'

And as a side note, you only need the colon for these URL_xxx shortcuts (not the two slashes). You can just type...

gg:crunchbang linux forums