LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2017, 12:11 PM   #31
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,229

Rep: Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345Reputation: 2345

Quote:
Originally Posted by David S View Post
Doesn't work with my UK keyboard.
It's not supposed to! The US keyboard driver is not the same as the UK one.
 
Old 09-14-2017, 12:19 PM   #32
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by DavidMcCann View Post
It's not supposed to! The US keyboard driver is not the same as the UK one.
That shouldn't make a difference. The issue here is getting the Win key to work in the same way as Alt-Gr rather than being "something else".
 
Old 09-14-2017, 12:43 PM   #33
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Code:
~ $ cat .Xmodmap 
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
keycode  58 = m M Greek_mu
Should be self-explanatory?
 
Old 09-14-2017, 12:47 PM   #34
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by Emerson View Post
Code:
~ $ cat .Xmodmap 
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
keycode  58 = m M Greek_mu
Should be self-explanatory?
Yes, but...
The UI gives a way to set these things up without (at least directly) editing the files and it's not that difficult. The UI way also works with other keyboard layouts as there's no hard-coding involved.
 
Old 09-14-2017, 01:38 PM   #35
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
I'm sure there are UI's for everything nowadays. There is none in my computers. I do not use ready-to-use desktop environments, my solutions are desktop agnostic. Also, xmodmap works with any keyboard layout.
 
Old 09-14-2017, 01:39 PM   #36
David S
LQ Newbie
 
Registered: Sep 2017
Location: Whitstable Kent Famous for Oysters
Distribution: Lubuntu
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
What did you do to configure the dead key to switch modes?
How do you do that?
 
Old 09-14-2017, 01:44 PM   #37
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
You pull your current configuration.
Code:
xmodmap -pk > keymap
Then you make your corrections, and create your ~/.Xmodmap file.
Load it.
Code:
xmodmap ~./Xmodmap
Note, traditional Linux setups will load it automatically. Modern Desktop Environments may ignore conventions, in this case you need to load it by hand every time or find a way to load it automatically using mechanisms provided by your DE.
 
Old 09-14-2017, 07:22 PM   #38
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by David S View Post
Thank you I did read that before but I didn't didn't know the term you used,(LXDE) sorry I didn't come back to you then.

As I said, I am new to Linux and still trying to get my head around it all. I am getting a bit long in the tooth and my brain doesn't cope so well with learning new things as it did when I was younger.
Hi David_S,

LXDE is the name of the desktop environment (the graphical user interface, or GUI) used with Lubuntu. Sorry I didn't think of specifying that.

Again, the most common way to resolve this very common need is as I suggested in post #13:

- modify your xorg configuration to enable a second keyboard layout. This can be done by creating a file in your /etc/xorg.conf.d directory called 00-keyboard.conf. The contents of this file would be along these lines:

Code:
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "uk,ca"
        Option "XkbOptions" "grp:alt_shift_toggle"
EndSection
- Add the Keyboard Layout Handler applet to your panel in LXDE (your desktop environment's lower panel). This is done by right-clicking on an empty part of the task bar panel and choosing "Add Remove Panel Items". Then choose "Keyboard Layout Handler". A little flag should then appear in your task bar denoting the input language then active. In my case this is the US flag when I am using a US English keyboard layout and a Canadian flag when using the Canadian French keyboard layout. The 2 options identified in the above file as "XkbLayout" determine your keyboard layout language choices - you can use different ones if you like.

The "grp:alt_shift_toggle" options identifies the ALT-SHIFT key combination as the keyboard layout switching hotkey combination. Again, several are supported.

Hope this helps !
 
2 members found this post helpful.
  


Reply


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: Speedup Your Typing with Ibus Typing Booster LXer Syndicated Linux News 0 04-07-2017 04:52 AM
LXer: Master efficient typing with Ibus typing booster LXer Syndicated Linux News 0 03-03-2017 11:03 AM
typing software or website to practise typing. bscho Linux - Software 5 10-25-2013 04:51 PM
Typing accents only works in some programs stefan_nicolau Linux - Software 1 05-07-2006 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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