54

I have a US English keyboard. How do I enter a euro symbol in Ubuntu? I can't find the symbol in character map, and I don't really want to change keyboard layout just to type one symbol occasionally.

2
  • 3
    You can check the US with euro on 5 keyboard layout. Oct 28, 2013 at 17:53
  • I am using the latest version of Ubuntu and the only explanation that works is the changes in terminal, however, each time the computer is restarted it reverts to the old setting. The further explanation to make it permanent is not clearly described and needs to be expanded- remembering that we are not all at the same level :)
    – user292146
    Jun 10, 2014 at 7:43

13 Answers 13

75

If you use English (US) keyboard layout and you don't want to change it, the the fastest way would be to use Ctrl+Shift+U key combination and then type 20ac followed by Space(or Enter) which will turn into .


Now if you want, for example, to change the $ sign (which you can type it using Shift+4 shortcut when you have an US English keyboard) with sign, you can use the following command in terminal in terminal:

xmodmap -e "keycode  13 = 4 EuroSign 4 EuroSign"

From now you can type using Shift+4 shortcut.

To switch back to $ sign, use:

xmodmap -e "keycode  13 = 4 dollar 4 dollar"

To get this change for every session, create a file called .xmodmap, with the following command:

xmodmap -pke > .xmodmap

Then, create a file called .xinitrc in your home directory, containing the following line/command:

xmodmap .xmodmap

In the same mode you can set any other key combination to type symbol. Use xmodmap -pke command to see all keycodes and their map assignment.

5
  • For more information on xmodmap read the following answer askubuntu.com/questions/24916/…, and other unicode characters see en.wikipedia.org/wiki/List_of_Unicode_characters
    – CrandellWS
    Jul 21, 2015 at 9:22
  • 3
    Excellent, this should be the accepted answer. Feb 9, 2016 at 11:21
  • xmodmap won't work in recent Ubuntu versions. Unfortunately. Oct 25, 2017 at 7:27
  • 1
    in Ubuntu 16, the compose key method is superior to tweaking a system or remember codes.
    – axd
    Jul 31, 2018 at 9:29
  • @axd For those of us coming from Windows, where we learned (over time) Alt+0128 = € or Alt+130 = é, the first section of this answer is great. Remember, some of us have an easier time remembering numbers than others. Everybody is different.
    – John
    Aug 7, 2019 at 1:02
60

Method 1) Use the compose key.

Compose key sequences for €

compose key+c+=
or
compose key+e+=

In fact, you can type the characters following the compose key in either order.

So compose key+=+c or compose key+=+e also work.

To set the compose key in 13.10,

  1. Go to System Settings >> Keyboard >> Shortcuts or System Settings >> Text Entry >> Keyboard Settings.
  2. Choose Typing in the left column.
  3. Click Compose Key and choose an option from the pop-up list. Right-Alt is a common choice.

To set the compose key in earlier versions,

  1. Go to System Settings >> Keyboard Layout >> Options.
  2. Click Compose Key Position to expand the list of options.

Compose key options are hard-coded in Gnome-based systems. See the Gtk compose key table.

Method 2) Use the Alternative Characters Key (also called the 3rd level chooser in earlier versions

This way is a little more complicated to set up, but will give you a 2-character sequence.

This requires dconf-editor. sudo apt-get install dconf-editor

  1. From the Shortcuts >> Typing as above, click Alternative Characters Key, and choose an option from the pop-up. (You do not have to set the compose key to use this option, but if you set it, make sure the compose key and alternative characters are set to different keys.)

  2. In dconf-editor, navigate to org >> gnome >> desktop >> input-sources

  3. To the setting xkb-options add one of the following:

    'eurosign:e' 'eurosign:2' 'eurosign:4' 'eurosign:5'

The single-quotes are required. If you already have options listed, separate strings with commas.

For example, I have the compose key set to right-alt, the alternative character set to menu, and euro set to 4. The setting looks like this:

['eurosign:4','lv3:menu_switch','compose:ralt']

The order of the strings doesn't matter. You can see that I chose the menu key and put the euro symbol on 4.

Now, alternative char key+4 produces .

3
  • compose key + C + = (or the other way around) also works. Nice memonic! Nov 16, 2016 at 17:47
  • The compose key idea is excellent. Very intuitive—I think € is the first one I've had to look up. My intuition was reaching for compose key+$+e Jun 20, 2019 at 0:11
  • Ubuntu 21.04 Macbook pro with US keyboard. In Settings > Languages and Regions, I use the input source English(US, intl., with dead key) to type various European scripts with diacritics. The compose key is the right command key and works nicely as explained above to produce €. Sep 28, 2021 at 9:59
16

In Character Map, select Common.

enter image description here

2
  • 8
    Better methods if you need to do this often: learn about compose Key that let you do it pressing 3 key <compose_key> e = Sep 7, 2016 at 15:19
  • in Ubuntu 16 the compose key method should be the recommended method.
    – axd
    Jul 31, 2018 at 9:29
12

On my UK keyboard, Alt Gr + 4 = €
PS:If you use a compose key (I use Win+Right) then I can use "="+"e" but no need in doing that since the first method described here is easier
I stress again this is on a UK keyboard layout.

6
  • 3
    Does not work for me on US and LT keyboards.
    – ViliusK
    Apr 13, 2015 at 12:07
  • 4
    Thanks, on my system you get the system with alt gr + 5, but only when typing in Greek. When typing in English it does not work.
    – user000001
    Oct 13, 2016 at 15:43
  • 1
    @ViliusK on LT keyboard Alt Gr + e works Jan 19, 2017 at 19:04
  • Yes, @RytisAlekna, that works.
    – ViliusK
    Jan 19, 2017 at 21:59
  • This works and is the best shortest answer. Works with unity 7.5 ubuntu 20.04 even. :)
    – Pandian Le
    May 17, 2021 at 18:18
10

Instead of the standard English (US) keyboard, switch to the English (US, alternative international) keyboard and you'll get the under Alt GrE and you'll be able to type most Western-European languages, including Français, Español, Italiano (Pasta al ragù), Nederlands (zeeën), Deutsch (Doppelgänger), ...

Here's the keyboard layout:

enter image description here

Note: Alt Gr is the right Alt

4

This is a way to enter any Unicode character, especially for those with no Alt Gr key.

Press Ctrl+Shift+U and type Unicode sequence:
20AC

Press Space and a '€' symbol will appear.

2

Alt Gr + 5 = € .

2
  • 1
    it's not the same (E≠5) and it works om my US layout
    – user154126
    Oct 29, 2013 at 11:33
  • What if keyboard has no Alt Gr? Oct 15, 2015 at 18:19
2

The trick is to find the keyboard layout contained in @fabby's answer above. To do that in Ubuntu 15.10, tap the Super key to show the Finder, search for and open keyboard, click the text entry link, then the little keyboard icon underneath the keyboard sources box in the window that appears:

the window that appears.

You will then see the keyboard layout for your own configuration:

keyboard layout for your own configuration

and should be able to find the € sign or any other special character you're looking for.

1

It seems the best two choices (on Linux Mint 20) are:

English (US, alt. intl.)

  • sets € under AltGr + 5 and AltGr + e
  • sets ¢ under AltGr + Shift + e
  • sets quotes and such to need an extra <space> to form

English (US, euro on 5)

  • set € under AltGr + 5
  • doesn't have the ¢ option
  • doesn't set quotes and such to need an extra <space> to form
2
  • LM is not Ubuntu, it is off topic here. Nov 12, 2020 at 3:12
  • Yeah, I doubted it a bit, but the other information here worked for me, and Mint is based on Ubuntu. And I'm guessing this is more about the type of keyboards. So seemed useful to me.
    – DZet
    Nov 12, 2020 at 14:03
1

On Ubuntu 20.04 , the shortcut is: AltGr(right Alt) + E

0

On an Ubuntu 13.10 Macbook Air 2013 with an English (Mac) keyboard, the shortcut is

Shift + Right Alt + 2

0

It is simple on my Lubuntu 18.04 keyboard, AltGr + 4 does it. Also AltGR + c gives ¢ which serves well enough for Euro cents.

0

On Ubuntu 18.04 for the European languages, the shortcut is AltGr + e = €

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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