How could I best write a hotkey script that opens an url in the webbrowser (firefox)?


ALT+G = www.google.de
ALT+W = www.wikipedia.de

Or would I have to use some kind of existing software therefore?

marked as duplicate by wjandrea, Eric Carvalho, Charles Green, muru, David Foerster May 6 '17 at 12:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


For this purpose, you can crate Custom shortcut:

  1. Go to System SettingsKeyboardShortcuts (tab) → Custom Shortcuts (section) → Add new +.

enter image description here

  1. In the Custom shortcut window type:

    • Name: Google
    • Command:

      • for FireFox: firefox www.google.de
      • for Chromium: chromium-browser www.google.de
    • Click on Apply

  2. Click on Disabled:

enter image description here

  1. Press ctrl+g to assign the desired shortcut:

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.