LinuxQuestions.org
Visit Jeremy's Blog.
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 06-02-2020, 10:19 AM   #1
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 90

Rep: Reputation: 15
Enlightenment 22 keyboard layout


Could anybody help me configure keyboard layout for Enlightenment 22 (I'm using the one from Debian repo)? I can add new layouts but it's always 'us' only, I did not find a way to change language. Thanks.
 
Old 06-03-2020, 11:44 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,143

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
The configuration files live in ~/.e22 I believe and you may be able to alter one. The problem is that Enlightenment doesn't have any adequate documentation, as you have probably realised. You need to set a group-shift key to change keyboards. Good options are the Windows Menu key or the Scroll-lock If you can't find a way to do that with E, then create a file with these contents:
Code:
#!/bin/sh
setxkbmap -option grp:sclk_toggle
(or menu-toggle if your prefer). Mark the file as executable and put it in the list of programs to run at start-up.

Last edited by DavidMcCann; 06-04-2020 at 10:42 AM.
 
Old 06-04-2020, 03:01 AM   #3
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 90

Original Poster
Rep: Reputation: 15
Thank you for the answer.
However I'm not sure how this would help my situation. This command would enable me to change keyboard layouts with a particular key, but my problem is that all the keyboard layouts I'm able to add are 'us' only, I can't see a way to change the language for new keyboard.
FYI I have the following in my X11 configuration and it works fine in other window managers, e.g. ratpoison, even E16:
Code:
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,sk"
        Option "XkbModel" "pc104"
        Option "XkbVariant" ",qwerty"
        Option "XkbOptions" "grp:alt_shift_toggle"
EndSection
However E22 seems to ignore that and alter this configuration, so when I run
Code:
setxkbmap -query
I only see the 'us' keyboard layouts, which matches what E22 is reporting.
 
Old 06-04-2020, 10:41 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,143

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
I assume that the code you quoted is in an xorg.conf file and E is just ignoring it? In that case, you need to need to use a start-up file of the type I described, but to specify everything that is non-standard:
Code:
#!/bin/sh
setxkbmap -layout us,sk
setxkbmap -option grp:alt_shift_toggle
I think that should do it.
 
Old 06-05-2020, 03:14 AM   #5
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 90

Original Poster
Rep: Reputation: 15
No, this just does not work. Creating a shell script like you mentioned, and add it to list of startup applications does not change anything.
Also putting these commands to the startup .xinitrc does not work.
Or running the commands in a terminal once E is started does not change anything.
It seems as if it's not possible to override whatever is configured in the E keyboard gadget.
 
Old 06-05-2020, 11:08 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,143

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Then I'm sorry, but I'm out of ideas. It doesn't help that I don't have Enlightenment, Enlightenment doesn't seem to have any end-user documentation, and hardly anyone seems to be using it
 
  


Reply

Tags
enlightenment, keyboard layout



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
Selecting the correct keyboard layout corresponding to my laptop's physical layout nidra Linux - Newbie 2 08-28-2017 08:14 AM
[SOLVED] Layout initially different between USB keyboard and laptop's integrated keyboard BrutalMusic Linux - Laptop and Netbook 6 02-07-2014 04:06 AM
Keyboard layout plugin disappears after keyboard is plugged in XFCE4 fsb Linux - Laptop and Netbook 0 01-04-2013 05:45 PM
Switching keyboard layout - Mandriva2006 - K.D.E. Windows Layout! itz2000 Mandriva 3 08-13-2006 06:43 PM
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 12:40 AM

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

All times are GMT -5. The time now is 03:59 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