Hotkey script to open url in browser? [duplicate]

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

Example:

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

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


Solution 1:

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