Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-14-2013, 07:52 AM   #1
LQ Newbie
Registered: Jun 2003
Posts: 13

Rep: Reputation: 0
What is the difference between Mode_switch and ISO_Level3_Switch

I didn't find this information anywhere else, so here it is.

`xmodmap -pke' results in lines like this:

keycode   8 =
keycode   9 = Escape NoSymbol Escape
keycode  10 = 1 exclam 1 exclam
keycode  11 = 2 at 2 at
keycode  12 = 3 numbersign 3 numbersign
keycode  13 = 4 dollar 4 dollar
keycode  14 = 5 percent 5 percent
keycode  15 = 6 asciicircum 6 asciicircum dead_circumflex dead_circumflex dead_circumflex

The format is:
keycode <NNN> = <symbol1> <symbol2> <symbol3> <symbol4> <symbol5> <symbol6> <symbol7> <symbol8>
The story in short is:
Mode_switch selects <symbol3>
Mode_switch+Shift selects <symbol4>
ISO_Level3_Switch selects <symbol5>
ISO_Level3_Switch+Shift selects <symbol6>
(i) You can just dump the whole current keymap via `xmodmap -pke > .Xmodmap'.
(ii) Then edit it all you want. In the editing, you should define some particular key as the Mode_switch or ISO_Level3_Switch. (But, apparently, not both.)
(iii) You may also have to add Mode_switch or ISO_Level3_Switch (which-ever you have chosen) to one of the modifier keys. (It probably isn't required in modern systems. It isn't required in mine.)
(iv) Load the file as the new keymap, via `xmodmap .Xmodmap'.

Two fine pages to learn more are given below. The first link has much which is outdated (at least for my system -- xserver-xorg-core 2:1.12.4-6 -- but the explanation is short and good).

Two lines of my `xmodmap -pke' output say:
keycode  27 = p P p P U2018 NoSymbol U2018
keycode  28 = y Y y Y U2019 NoSymbol U2019
So, using the ISO_Level3_Latch key, I can directly type Unicode symbols U2018() and U2019().

Note that setting keys via `xmodmap' is now deprecated, but it works, and setting them via setxkbmap looks too complicated. (I myself use a patchwork of strange and crazy keymays -- not something to be emulated! You may go about in a clean manner though.)

For the difference between ISO_Level3_Shift, ISO_Level3_Latch and ISO_Level3_Lock, see another post.

Last edited by polytropos; 06-14-2013 at 08:14 AM. Reason: added a link
Old 06-15-2013, 03:03 AM   #2
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Thread is marked as being [SOLVED], seems to be informational and no question is asked.

Taken off the zero-reply list.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Making a Difference; Selling a Difference LXer Syndicated Linux News 0 09-23-2010 05:00 AM
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 04:26 AM
XKeyEvent and the mode_switch (AltGr) modifier LonelyStar Programming 1 10-04-2007 01:35 PM
keyboard layout (alternative key with mode_switch) super-momo Debian 2 02-12-2005 11:22 PM
Difference? Jongi Linux - Newbie 4 08-22-2003 02:21 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration