LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-27-2020, 07:00 AM   #1
oren_daniel
LQ Newbie
 
Registered: Apr 2019
Location: Ra'anana Israel
Distribution: Debian
Posts: 13

Rep: Reputation: Disabled
Multiple keyboards layout with only 2 layouts on Shift alt ?


I usually write in both English and Hebrew, however from time to time I need to type Greek letters or letters from other language (but not very often).

So the the setup I want is Shift - Alt swaps from English to Hebrew only, but When I press the keyboard applet I can choose which layout the I want from a list.

I am using Ubuntu Mate Raspberry build.

Can I achieve such setup?
 
Old 08-27-2020, 11:08 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
The keyboard short-cut is a toggle. Pressing it once takes you to Hebrew, pressing it again should take you to Greek. If it doesn't, then you have a bug and will just have to use the panel applet.
 
Old 08-27-2020, 11:36 AM   #3
oren_daniel
LQ Newbie
 
Registered: Apr 2019
Location: Ra'anana Israel
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DavidMcCann View Post
The keyboard short-cut is a toggle. Pressing it once takes you to Hebrew, pressing it again should take you to Greek. If it doesn't, then you have a bug and will just have to use the panel applet.
Thank you for your response David.

Now I think you misunderstood my question, My Layouts look something like this:

English
Hebrew
Greek
Phoenician Keyboard


I want "Shift Alt" to cycle between English and Hebrew only because I use those very often (That is Greek and Phoenician should be ignored).

However from time to time I type in Greek or Phoenician, but not very often so I don't want "Shift Alt" to switch to them, However I need way to select them (by pressing the applet or any other way).

Is there a way to achieve such a behavior?
 
Old 08-28-2020, 08:00 AM   #4
lvm_
Member
 
Registered: Jul 2020
Posts: 936

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
There are ways to switch between just two of the installed layouts e.g.

grp:lctrl_rctrl_switch Left Ctrl to first layout; Right Ctrl to last layout

but all such combinations use different hotkeys for each of the two layouts, not one to toggle. Full list is in man xkeyboard-config and should be available in the GUI keyboard setup utility you are using.
 
Old 08-28-2020, 11:22 AM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
In the GUIs with which I'm familiar, setting the group switch is global and the same for all keyboard drivers. Using different moves for different drivers would require editing the drivers in /usr/share/X11/xkb/symbols. The basic options available are to move to the next group, move to the previous group, and move to the last group — no way move directly to the third of four. I have in my basic code (/usr/share/X11/xkb/symbols/pc)
Code:
key <SCLK> {[ISO_Next_Group, ISO_Prev_Group]};
so for me Scroll Lock gets the second keyboard, Shift + Scroll Lock goes back to the first, and Scroll Lock twice gets the third.
 
Old 08-28-2020, 04:35 PM   #6
oren_daniel
LQ Newbie
 
Registered: Apr 2019
Location: Ra'anana Israel
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: Disabled
In the end I settled for Alt+Shift | LCtrl+LWin first layout ; RCtrl+Menu second layout, and it quite easy to use.

Then I LCtrl+LWin to always return to English.
 
  


Reply

Tags
keyboard layout, mate, ubuntu mate



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
Xorg multiple keyboards and layouts deadeyes Linux - General 2 10-01-2007 01:25 AM
multiple keyboards with multiple layouts pinguin33 Linux - Laptop and Netbook 2 01-08-2006 07:13 PM
multiple keyboards with multiple layouts pinguin33 Linux - Hardware 4 01-08-2006 08:30 AM
How to change KDE default Ctrl+Alt+K for changing language into Alt+Shift sepetar Linux - General 9 01-04-2006 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:50 AM.

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