Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Eurosymbol in X
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Sun Jun 02, 2013 12:08 pm    Post subject: [solved] Eurosymbol in X Reply with quote

In X I managed to get the dead keys working. I'm using XFCE4.
What I can't manage is to get the euro symbol working. And I would like to get é ë etc with altgr insead of the "nodeadkeys" option.

I followed the guide on: http://www.gentoo.org/doc/en/guide-localization.xml

Does anyone know what the right config is?

This is my config:
Code:

elmarotter@trillian ~ $ cat /etc/X11/xorg.conf.d/30-keyboard.conf
Section "InputClass"
        Identifier "keyboard-all"
        Driver "evdev"
        Option "XkbLayout" "us_intl"
        Option "XkbModel"  "pc105"
        #Option "XkbVariant" "altgr-intl"
        #Option "XkbVariant" "nodeadkeys"
        Option "XkbOptions" "grp:alt_shift_toggle,grp:switch,terminate:ctrl_alt_bksp"
        MatchIsKeyboard "on"
EndSection


Code:

elmarotter@trillian ~ $ cat /usr/share/fonts/misc/fonts.alias | grep iso8859-15
fixed        -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15
variable     -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-15
7x13euro     -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-15
7x13eurobold -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-15


Last edited by elmar283 on Sun Jun 02, 2013 1:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jun 02, 2013 12:52 pm    Post subject: Reply with quote

I run xmodmap from .xinitrc for fine tuning in otherwise US UTF-8 boxes. I'm using left Windows key to switch.
Code:
$ cat .xmodmaprc
keycode 133 = Mode_switch
keycode  13 = 4 dollar 4 cent
keycode  24 = q Q otilde Otilde
keycode  26 = e E EuroSign cent
keycode  30 = u U udiaeresis Udiaeresis
keycode  32 = o O odiaeresis Odiaeresis
keycode  38 = a A adiaeresis Adiaeresis
keycode  39 = s S scaron Scaron
keycode  40 = d D degree
keycode  52 = z Z zcaron Zcaron

_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Sun Jun 02, 2013 1:00 pm    Post subject: Reply with quote

Do you know what number 'altgr' is?
So I can use that.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jun 02, 2013 1:17 pm    Post subject: Reply with quote

You can use xev command to find it out.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
elmar283
Guru
Guru


Joined: 06 Dec 2004
Posts: 316
Location: Haarlem, Netherlands

PostPosted: Sun Jun 02, 2013 1:36 pm    Post subject: Reply with quote

Thanks. This solved the one half and most important part of my question:
I found out that in '/etc/X11/xinit/xinitrc' the file '.Xmodmap' is used. So I used that one.

The output is:
Code:

elmarotter@trillian ~ $ cat ~/.Xmodmap
keycode 108 = Mode_switch
keycode  14 = 5 percent EuroSign percent EuroSign NoSymbol EuroSign


Now I only have to set all the special caracters like é, ë etc and it should work I think.
Thanks!
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jun 02, 2013 1:45 pm    Post subject: Reply with quote

You are welcome! Thanks to you I added μ to my list, wanted to do it for long time. You can look into /usr/share/X11/xkb/symbols for clues.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum