1

My system is Xubuntu 16.04 and I would like to create a shortcut key to open a URL. I don't want a desktop entry to open a URL, I know that I can create a desktop shortcut to open a URL. To be precise: Is it possible to set a shortcut key combination to open a URL directly in firefox (not a desktop entry!)? thanks, Vladi

2
  • Are you asking for a shortcut key within Firefox (i.e. open Firefox, press keys, Firefox goes to website), or are you asking for a system wide shortcut key that opens a specific URL in Firefox (i.e. press keys, Firefox opens, Firefox goes to website)?
    – 3D1T0R
    Aug 28, 2018 at 19:37
  • 1
    @3D1T0R yes it is the first option: shortcut key WITHIN Firefox (open Firefox, press keys, Firefox goes to website) Aug 28, 2018 at 20:46

1 Answer 1

1

This is not directly in firefox, but isn't using a desktop shortcut either. It won't create a file or link anywhere visibly in your files, so I assume this will fit your needs:

  1. Go to settings and open your Keyboard settings
  2. Go to the Application Shortcuts tab settings
  3. Hit Add and enter the following command: firefox --new-tab "http://example.com" The --new-tab is important if you don't want firefox to open a new window.
  4. Hit Ok and enter the shortcut you would like to use for this URL.

That's the closest you can get to having a shortcut without a desktop launcher or something like that. There might be an addon for firefox but with bare firefox I don't think it's possible to have an URL shortcut, except for your homepage, of course. (Alt + Home)

12
  • This creates a system wide shortcut, not a shortcut within Firefox, as requested by OP.
    – 3D1T0R
    Aug 28, 2018 at 21:27
  • OP asked to not have a desktop entry, which my answer won't create. There is no option to do it all just in firefox without external add-ons.
    – confetti
    Aug 28, 2018 at 21:28
  • In the title, and in a comment OP specifies that they want a shortcut within Firefox. While this may work for OP, it's not what was requested. If Firefox doesn't have this functionality built in, I see no indication that OP isn't willing to use an extension/add-on, so that should be the recommendation.
    – 3D1T0R
    Aug 28, 2018 at 21:31
  • Well, addons.mozilla.org/en-US/firefox/addon/shortkeys would be a solution. Let's wait for OP to clearify which option they'd prefer.
    – confetti
    Aug 28, 2018 at 21:40
  • 1
    Yeah, I saw that in my cursory search, but I didn't like the way it was implemented. Also... @confetti: Just to be clear, I'm not saying this answer should be taken down or anything, just pointing out that it's not what OP asked for, and thus another answer should be given that is more in line with the request. (If I have time, I might do it.)
    – 3D1T0R
    Aug 28, 2018 at 21:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .