Author Topic: How to add second keyboard layout to lxqt  (Read 3986 times)

0 Members and 1 Guest are viewing this topic.

Offline jmak

  • Neuling
  • *
  • Posts: 41
How to add second keyboard layout to lxqt
« on: 10. September 2014, 16:04:54 »
Hello,

I've just installed lxqt edition. Great distro! I can't figure out how to add a second keyboard layout.

Any idea?

Thanks

Offline schpankme

  • Held Mitglied
  • *****
  • Posts: 1600
  • High Carb / Low Fat / Vegan
  • Branch: Stable
  • Desktop: Qt..i3..OpenRC..Eudev
  • GPU Card: GTX 780 Ti
  • GPU driver: video-nouveau
  • Kernel: 4.4.45-1 x64
  • Skill: Advanced
Re: How to add second keyboard layout to lxqt
« Reply #1 on: 10. September 2014, 16:41:48 »
Change keyboard layouts

~/.bashrc

~/.xinitrc
Code: [Select]
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll de,tr,us
Comments:

    alt_shift_toggle can be replaced by another key combination.
    grp_led:scroll is optional. Using it will turn on the scroll lock light if another layout than the first specified is active.
    de,tr,us can be any comma-separated list of keyboard layouts. In this case German, Turkish, and US English layout.

Execute setxkbmap -option to reset these settings.
« Last Edit: 10. September 2014, 17:54:50 by schpankme »

Offline jmak

  • Neuling
  • *
  • Posts: 41
Re: How to add second keyboard layout to lxqt
« Reply #2 on: 10. September 2014, 17:18:03 »
Change keyboard layouts

 ~/.bashrc
Code: [Select]
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll de,tr,us
Comments:

    alt_shift_toggle can be replaced by another key combination.
    grp_led:scroll is optional. Using it will turn on the scroll lock light if another layout than the first specified is active.
    de,tr,us can be any comma-separated list of keyboard layouts. In this case German, Turkish, and US English layout.

Execute setxkbmap -option to reset these settings.

Thanks for the reply,

I put this command in the .bashrc file, but it doesn't work.

It works if I execute it in the terminal, but I want to make this permanent. If there is a way to do that.

Offline jmak

  • Neuling
  • *
  • Posts: 41
Re: How to add second keyboard layout to lxqt
« Reply #3 on: 10. September 2014, 17:26:03 »
I modified the nvidia.conf file like this,
Code: [Select]
Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
Option "XkbLayout" "us, hu"
Option "XkbOptions" "grp:switch,grp:alt_shift_toggle,grp_led:scroll us,hu"
EndSection
but no effect.

Offline schpankme

  • Held Mitglied
  • *****
  • Posts: 1600
  • High Carb / Low Fat / Vegan
  • Branch: Stable
  • Desktop: Qt..i3..OpenRC..Eudev
  • GPU Card: GTX 780 Ti
  • GPU driver: video-nouveau
  • Kernel: 4.4.45-1 x64
  • Skill: Advanced
Re: How to add second keyboard layout to lxqt
« Reply #4 on: 10. September 2014, 17:42:13 »
Is there an  ".xkm" file in /var/lib/xkb/  ?

IF yes .. rename the *.xkm file to *xkm.bak and reboot.

Offline jmak

  • Neuling
  • *
  • Posts: 41
Re: How to add second keyboard layout to lxqt
« Reply #5 on: 10. September 2014, 17:50:49 »
Is there an  ".xkm" file in /var/lib/xkb/  ?

IF yes .. rename the *.xkm file to *xkm.bak and reboot.

No such file exits.

Offline schpankme

  • Held Mitglied
  • *****
  • Posts: 1600
  • High Carb / Low Fat / Vegan
  • Branch: Stable
  • Desktop: Qt..i3..OpenRC..Eudev
  • GPU Card: GTX 780 Ti
  • GPU driver: video-nouveau
  • Kernel: 4.4.45-1 x64
  • Skill: Advanced
Re: How to add second keyboard layout to lxqt
« Reply #6 on: 10. September 2014, 17:56:15 »
My bad telling you  ~/.bashrc

"setxkbmap can be made persistent in ~/.xinitrc"

ref:  https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg#Using_setxkbmap
ref: https://wiki.manjaro.org/index.php?title=Configuration_du_clavier_apr%C3%A8s_l%27installation#Claviers_dans_X11_.2F_Xorg

Keyboards X11 / Xorg
Code: [Select]
us              English (US)
 ad              Catalan
 af              Afghani
 Arabic
 al              Albanian
 am              Armenian
 at              German (Austria)
 az Azerbaijani
 by              Belarusian
 be              Belgian
 bd              Bengali
 in              Indian
 ba              Bosnian
 br              Portuguese (Brazil)
 bg              Bulgarian
 ma              Arabic (Morocco)
 cm              English (Cameroon)
 mm              Burmese
 ca              French (Canada)
 cd              French (Democratic Republic of the Congo)
 cn              Chinese
 hr              Croatian
 cz Czech Republic
 dk Danish
 nl              Dutch
 bt              Dzongkha
 ee Estonian
 ir Persian
 iq              Iraqi
 fo              Faroese
 Finnish fi
 fr              French
 gh              English (Ghana)
 gn              French (Guinea)
 ge Georgian
 de              German
 gr              Greek
 hu              Hungarian
 is              Icelandic
 il              Hebrew
 it              Italian
 jp              Japanese
 kg              Kyrgyz
 kh Memory (Cambodia)
 DEPARTMENT Kazakh
 la              Lao
 latam           Spanish (Latin American)
 lt              Lithuanian
 lv Latvian
 mao             Maori
 me              Montenegrin
 mk              Macedonian
 mt              Maltese
 mn              Mongolian
 no              Norwegian
 pl              Polish
 pt              Portuguese
 ro              Romanian
 ru              Russian
 rs              Serbian (Cyrillic)
 the Slovenian
 sk Slovak
 es              Spanish
 se              Swedish
 ch              German (Switzerland)
 which is Arabic (Syria)
 Tajik tj
 lk              Sinhala (phonetic)
 th              Thai
 tr              Turkish
 tw              Taiwanese
 ua Ukrainian
 gb              English (UK)
 the Uzbek
 vn Vietnamese
 Cr Korean
 nec_vndr/jp     Japanese (PC-98xx Series)
 ie              Irish
 pk              Urdu (Pakistan)
 mv              Dhivehi
 za              English (South Africa)
 epo Esperanto
 NP Nepal
 ng English (Nigeria)
 et              Amharic
 sn              Wolof
 Braille brai
 tm              Turkmen
 ml Bambara
 tz English (United Kingdom)
 ke Swahili (Kenya)
 bw              Tswana
 ph              Filipino
 md              Moldavian


Variantes XkbLayout
Code: [Select]
chr             us: Cherokee
 euro            us: English (US, with euro on 5)
 intl            us: English (US, international with dead keys)
 alt-intl us: English (U.S., alternative international)
 colemak         us: English (Colemak)
 dvorak          us: English (Dvorak)
 dvorak-intl     us: English (Dvorak international with dead keys)
 Dvorak alt-intl us: English (Dvorak alternative international no dead keys)
 dvorak-l us: English (left handed Dvorak)
 dvorak-r        us: English (right handed Dvorak)
 dvorak-classic  us: English (classic Dvorak)
 dvp             us: English (programmer Dvorak)
 rus             us: Russian (US, phonetic)
 mac             us: English (Macintosh)
 AltGr-intl us: English (international AltGr dead keys)
 olpc2           us: English (layout toggle on multiply/divide key)
 hbs             us: Serbo-Croatian (US)
 ps af: Pashto
 uz af: Uzbek (Afghanistan)
 OLPC-ps af: Pashto (Afghanistan, OLPC)
 OLPC fa-af: Persian (Afghanistan, From OLPC)
 uz-OLPC af: Uzbek (Afghanistan, OLPC)
 AZERTY ara: Arabic (AZERTY)
 azerty_digits ara: Arabic (AZERTY / Digits)
 ara Digits: Arabic (Digits)
 qwerty          ara: Arabic (qwerty)
 qwerty_digits   ara: Arabic (qwerty/digits)
 buckwalter breast: Arabic (Buckwalter)
 phonetic        am: Armenian (phonetic)
 phonetic-alt    am: Armenian (alternative phonetic)
 eastern         am: Armenian (eastern)
 western         am: Armenian (western)
 eastern-alt am: Armenian (eastern alternative)
 nodeadkeys      at: German (Austria, eliminate dead keys)
 sundeadkeys     at: German (Austria, Sun dead keys)
 mac             at: German (Austria, Macintosh)
 cyrillic small: English (Cyrillic)
 legacy          by: Belarusian (legacy)
 latin           by: Belarusian (Latin)
 us pray: Belgian (optional)
 oss_latin9      be: Belgian (alternative, latin-9 only)
 oss_sundeadkeys be: Belgian (alternative, Sun dead keys)
 iso-alternate   be: Belgian (ISO alternate)
 nodeadkeys      be: Belgian (eliminate dead keys)
 sundeadkeys ba: Belgium (the Sun dead keys)
 money be: Belgian (Wang model 724 Azerty)
 probhat bd: Bengali (Probhat)
 Ben in: Bengali (India)
 ben_probhat in: Bengali (India, Probhat)
 ben_baishakhi in: Bengali (India, Baishakhi)
 ben_bornona in: Bengali (India, Bornona)
 ben_gitanjali in: Bengali (India, Gitanjali Union)
 ben_inscript in: Bengali (India, Baishakhi inscript)
 guj: Gujarati
 teachers in Punjabi (Jambo)
 Jhelum in: Punjabi (Gurmukhi Jhelum)
 A: Chinese
 mal in: Malayalam
 mal_lalitha in: Malayalam (Lalitha)
 mal_enhanced    in: Malayalam (enhanced Inscript with Rupee Sign)
 in: Sotho
 tam_unicode in: Tamil (Unicode)
 tam_keyboard_with_numerals in: Tamil (keyboard with numerals)
 tam_TAB         in: Tamil (TAB typewriter)
 tam_TSCII       in: Tamil (TSCII typewriter)
 Tam in: Tamil
 tel in: Telugu
 urd-phonetic    in: Urdu (phonetic)
 urd-phonetic3   in: Urdu (alternative phonetic)
 ura-winkeys in Urdu (winkeys)
 and bolnagri: Hindi (Bolnagri)
 hin-wx          in: Hindi (Wx)
 eng             in: English (India, with RupeeSign)
 alternatequotes ba: Bosnian (use quotes for fees)
 unicode what: Bosnian (Bosnian Digraphs defnyddio)
 unicodeus       ba: Bosnian (US keyboard with Bosnian digraphs)
 us              ba: Bosnian (US keyboard with Bosnian letters)
 nodeadkeys      br: Portuguese (Brazil, eliminate dead keys)
 dvorak          br: Portuguese (Brazil, Dvorak)
 Nativo br: Portuguese (Brazil, Nativo)
 Native-us en: Portuguese (Brazil, native for USA keyboards)
 Native epo br: Portuguese (Brazil, native is Esperanto)
 phonetic        bg: Bulgarian (traditional phonetic)
 bas_phonetic    bg: Bulgarian (new phonetic)
 french          ma: French (Morocco)
 tifinagh        ma: Berber (Morocco, Tifinagh)
 tifinagh alt-ma: Berber (Morocco, Tifinagh alternative)
 tifinagh-alt-phonetic ma: Berber (Morocco, Tifinagh alternative phonetic)
 tifinagh-extended ma: Berber (Morocco, Tifinagh extended)
 tifinagh-phonetic ma: Berber (Morocco, Tifinagh phonetic)
 tifinagh-extended-phonetic ma: Berber (Morocco, Tifinagh extended phonetic)
 french          cm: French (Cameroon)
 qwerty          cm: Cameroon Multilingual (qwerty)
 azerty cm: Cameroon Multilingual (azerty)
 dvorak          cm: Cameroon Multilingual (Dvorak)
 fr-dvorak       ca: French (Canada, Dvorak)
 legacy ca-fr: French (Canada, legacy)
 MULTIX as: Canadian Multilingual
 many as: Canadian Multilingual (first part)
 multi-2gr as: Canadian Multilingual (second part)
 ike             ca: Inuktitut
 eng             ca: English (Canada)
 tib             cn: Tibetan
 tib_asciinum    cn: Tibetan (with ASCII numerals)
 uig             cn: Uyghur
 alternatequotes hr: Croatian (use guillemets for quotes)
 unicode         hr: Croatian (use Croatian digraphs)
 unicodeus       hr: Croatian (US keyboard with Croatian digraphs)
 us              hr: Croatian (US keyboard with Croatian letters)
 bksl cz: Czech Republic (with <\ |> key)
 qwerty cz: Czech (qwerty)
 qwerty_bksl     cz: Czech (qwerty, extended Backslash)
 ucw             cz: Czech (UCW layout, accented letters only)
 dvorak-ucw      cz: Czech (US Dvorak with CZ UCW support)
 nodeadkeys      dk: Danish (eliminate dead keys)
 mac dk: Danish (Macintosh)
 mac_nodeadkeys  dk: Danish (Macintosh, eliminate dead keys)
 Dvorak dk: Danish (Dvorak)
 sundeadkeys     nl: Dutch (Sun dead keys)
 mac             nl: Dutch (Macintosh)
 std nl: Dutch (Standard)
 nodeadkeys      ee: Estonian (eliminate dead keys)
 Dvorak ee: Estonian (Dvorak)
 us              ee: Estonian (US keyboard with Estonian letters)
 pes_keypad ir: Persian (Persian with Keypad)
 remains humble: Kurdish (Iran, Latin Q)
 ku_f ir: Kurdish (Iran, F)
 ku_alt fraud: Kurdish (Iran, Latin alt-Q)
 ku_ara fraud: Kurdish (Iran, Arabic-Latin)
 where IQ: Kurdish (Iraq, Latin Q)
 ku_f IQ: Kurdish (Iraq, F)
 ku_alt iq: Kurdish (Iraq, Latin Alt-Q)
 ku_ara IQ: Kurdish (Iraq, Arabic-Latin)
 nodeadkeys      fo: Faroese (eliminate dead keys)
 classic         fi: Finnish (classic)
 nodeadkeys      fi: Finnish (classic, eliminate dead keys)
 smi             fi: Northern Saami (Finland)
 mac             fi: Finnish (Macintosh)
 nodeadkeys      fr: French (eliminate dead keys)
 sundeadkeys     fr: French (Sun dead keys)
 us fr: French (alternative)
 oss_latin9      fr: French (alternative, latin-9 only)
 oss_nodeadkeys  fr: French (alternative, eliminate dead keys)
 oss_sundeadkeys fr: French (alternative, Sun dead keys)
 latin9          fr: French (legacy, alternative)
 latin9_nodeadkeys fr: French (legacy, alternative, eliminate dead keys)
 latin9_sundeadkeys fr: French (legacy, alternative, Sun dead keys)
 bepo            fr: French (Bepo, ergonomic, Dvorak way)
 bepo_latin9     fr: French (Bepo, ergonomic, Dvorak way, latin-9 only)
 dvorak          fr: French (Dvorak)
 mac             fr: French (Macintosh)
 bre             fr: French (Breton)
 oci             fr: Occitan
 geo             fr: Georgian (France, AZERTY Tskapo)
 generic         gh: English (Ghana, multilingual)
 will gh: Will
 will become: What
 fula            gh: Fula
 will become:
 hausa           gh: Hausa
 avn             gh: Avatime
 gillbt gh: English (Ghana, GILLBT)
 ergonomic ge: Georgian (ergonomic)
 mess            ge: Georgian (MESS)
 ru              ge: Russian (Georgia)
 ge os: Ossetian (Georgia)
 deadacute by: German (acute dead)
 deadgraveacute by: German (dead serious acute)
 nodeadkeys      de: German (eliminate dead keys)
 ro              de: Romanian (Germany)
 ro_nodeadkeys   de: Romanian (Germany, eliminate dead keys)
 Dvorak de: German (Dvorak)
 sundeadkeys also: German (Sun dead keys)
 neo             de: German (Neo 2)
 mac             de: German (Macintosh)
 mac_nodeadkeys  de: German (Macintosh, eliminate dead keys)
 dsb             de: Lower Sorbian
 dsb_qwertz      de: Lower Sorbian (qwertz)
 qwerty          de: German (qwerty)
 ru              de: Russian (Germany, phonetic)
 simple          gr: Greek (simple)
 extended        gr: Greek (extended)
 nodeadkeys      gr: Greek (eliminate dead keys)
 polytonic       gr: Greek (polytonic)
 standard        hu: Hungarian (standard)
 nodeadkeys      hu: Hungarian (eliminate dead keys)
 qwerty          hu: Hungarian (qwerty)
 101_qwertz_comma_dead hu: Hungarian (101/qwertz/comma/dead keys)
 101_qwertz_comma_nodead hu: Hungarian (101/qwertz/comma/eliminate dead keys)
 101_qwertz_dot_dead hu: Hungary (101 / QWERTZ / dot / dead keys)
 101_qwertz_dot_nodead hu: Hungarian (101/qwertz/dot/eliminate dead keys)
 101_qwerty_comma_dead hu: Hungarian (101/qwerty/comma/dead keys)
 101_qwerty_comma_nodead hu: Hungarian (101/qwerty/comma/eliminate dead keys)
 101_qwerty_dot_dead hu: Hungarian (101/qwerty/dot/dead keys)
 101_qwerty_dot_nodead hu: Hungarian (101/qwerty/dot/eliminate dead keys)
 102_qwertz_comma_dead hu: Hungarian (102/qwertz/comma/dead keys)
 102_qwertz_comma_nodead hu: Hungarian (102/qwertz/comma/eliminate dead keys)
 102_qwertz_dot_dead hu: Hungary (102 / QWERTZ / dot / dead keys)
 102_qwertz_dot_nodead hu: Hungarian (102/qwertz/dot/eliminate dead keys)
 102_qwerty_comma_dead hu: Hungarian (102/qwerty/comma/dead keys)
 102_qwerty_comma_nodead hu: Hungarian (102/qwerty/comma/eliminate dead keys)
 102_qwerty_dot_dead hu: Hungarian (102/qwerty/dot/dead keys)
 102_qwerty_dot_nodead hu: Hungarian (102/qwerty/dot/eliminate dead keys)
 Sundeadkeys     is: Icelandic (Sun dead keys)
 nodeadkeys      is: Icelandic (eliminate dead keys)
 mac             is: Icelandic (Macintosh)
 dvorak          is: Icelandic (Dvorak)
 lyx             il: Hebrew (lyx)
 phonetic        il: Hebrew (phonetic)
 biblical        il: Hebrew (Biblical, Tiro)
 nodeadkeys      it: Italian (eliminate dead keys)
 mac             it: Italian (Macintosh)
 us              it: Italian (US keyboard with Italian letters)
 geo             it: Georgian (Italy)
 kana            jp: Japanese (Kana)
 kana86          jp: Japanese (Kana 86)
 OADG109A jp: Japanese (OADG 109A)
 mac             jp: Japanese (Macintosh)
 dvorak          jp: Japanese (Dvorak)
 phonetic        kg: Kyrgyz (phonetic)
 ruskaz kz: Russian (Kazakhstan, with Kazakh)
 kazrus Kz: Kazakh (with Russian)
 stea            la: Lao (STEA proposed standard layout)
 nodeadkeys      latam: Spanish (Latin American, eliminate dead keys)
 deadtilde       latam: Spanish (Latin American, include dead tilde)
 sundeadkeys     latam: Spanish (Latin American, Sun dead keys)
 std             lt: Lithuanian (standard)
 us              lt: Lithuanian (US keyboard with Lithuanian letters)
 ibm lt: Lithuanian (IBM LST ​​1205-92)
 lekp lt: Lithuanian (LEKP)
 lekpa lt: Lithuanian (LEKPa)
 apostrophe lv: Latvian (apostrophe variant)
 tilde LV: Latvian (tilde version)
 fkey lv: Latvian (F variant)
 modern LV: Latvian (mother)
 ergonomic lv: Latvian (ergonomic, ŪGJRMV)
 adapted LV: Latvian (adapted)
 cyrillic        me: Montenegrin (Cyrillic)
 cyrillicyz      me: Montenegrin (Cyrillic, Z and ZHE swapped)
 latinunicode me: Montenegrin (Latin Unicode)
 latinyz         me: Montenegrin (Latin qwerty)
 latinunicodeyz me: Montenegrin (Latin Unicode qwerty)
 cyrillicalternatequotes me: Montenegrin (Cyrillic with guillemets)
 latinalternatequotes me: Montenegrin (Latin with guillemets)
 nodeadkeys      mk: Macedonian (eliminate dead keys)
 us              mt: Maltese (with US layout)
 nodeadkeys      no: Norwegian (eliminate dead keys)
 dvorak          no: Norwegian (Dvorak)
 smi             no: Northern Saami (Norway)
 smi_nodeadkeys  no: Northern Saami (Norway, eliminate dead keys)
 mac             no: Norwegian (Macintosh)
 mac_nodeadkeys  no: Norwegian (Macintosh, eliminate dead keys)
 Colemak no: Norwegian (Colemak)
 qwertz          pl: Polish (qwertz)
 Dvorak pl: Polish (Dvorak)
 dvorak_quotes   pl: Polish (Dvorak, Polish quotes on quotemark key)
 dvorak_altquotes pl: Polish (Dvorak, Polish quotes on key 1)
 CSB pl: Kashubian
 ru_phonetic_dvorak pl: Russian (Poland, phonetic Dvorak)
 dvp pl: Polish (programmer Dvorak)
 nodeadkeys      pt: Portuguese (eliminate dead keys)
 sundeadkeys     pt: Portuguese (Sun dead keys)
 mac pt: Portuguese (Macintosh)
 mac_nodeadkeys  pt: Portuguese (Macintosh, eliminate dead keys)
 mac_sundeadkeys pt: Portuguese (Macintosh, Sun dead keys)
 native en: English (Native)
 nativo-us       pt: Portuguese (Nativo for USA keyboards)
 Native epo pt: Esperanto (Portugal, Native)
 cedilla ro: Romanian (cedilla)
 std             ro: Romanian (standard)
 std_cedilla ro: Romanian (standard cedilla)
 winkeys         ro: Romanian (WinKeys)
 phonetic        ru: Russian (phonetic)
 phonetic_winkeys ru: Russian (phonetic WinKeys)
 typewriter      ru: Russian (typewriter)
 legacy          ru: Russian (legacy)
 typewriter-legacy ru: Russian (typewriter, legacy)
 tt ru: Tatar
 os_legacy       ru: Ossetian (legacy)
 os_winkeys ru: Ossetian (WinKeys)
 cv              ru: Chuvash
 cv_latin        ru: Chuvash (Latin)
 udm             ru: Udmurt
 kom ru: Komi
 Sah ru: Yakut
 xal se: Kalmyk
 dos             ru: Russian (DOS)
 srp             ru: Serbian (Russia)
 bak ru: Bashkirian
 chm             ru: Mari
 yz              rs: Serbian (Cyrillic, Z and ZHE swapped)
 latin           rs: Serbian (Latin)
 latinunicode rs: Serbian (Latin Unicode)
 latinyz         rs: Serbian (Latin qwerty)
 latinunicodeyz rs: Serbian (Latin Unicode qwerty)
 alternatequotes rs: Serbian (Cyrillic with guillemets)
 latinalternatequotes rs: Serbian (Latin with guillemets)
 rue rs: Pannonian Rusyn (homophonic)
 alternatequotes if: Slovenian (use quotes for fees)
 us              si: Slovenian (US keyboard with Slovenian letters)
 bksl            sk: Slovak (extended Backslash)
 qwerty          sk: Slovak (qwerty)
 qwerty_bksl     sk: Slovak (qwerty, extended Backslash)
 nodeadkeys      es: Spanish (eliminate dead keys)
 dead tilde es: Spanish (include dead tilde)
 sundeadkeys     es: Spanish (Sun dead keys)
 Dvorak es: Spanish (Dvorak)
 ast             es: Asturian (Spain, with bottom-dot H and bottom-dot L)
 cat             es: Catalan (Spain, with middle-dot L)
 mac             es: Spanish (Macintosh)
 nodeadkeys      se: Swedish (eliminate dead keys)
 Dvorak is: Swedish (Dvorak)
 rus             se: Russian (Sweden, phonetic)
 rus_nodeadkeys  se: Russian (Sweden, phonetic, eliminate dead keys)
 smi             se: Northern Saami (Sweden)
 mac             se: Swedish (Macintosh)
 svdvorak are: Swedish (Svdvorak)
 swl             se: Swedish Sign Language
 legacy          ch: German (Switzerland, legacy)
 de_nodeadkeys   ch: German (Switzerland, eliminate dead keys)
 de_sundeadkeys ch: German (Switzerland, Sun dead keys)
 fr              ch: French (Switzerland)
 fr_nodeadkeys   ch: French (Switzerland, eliminate dead keys)
 fr_sundeadkeys  ch: French (Switzerland, Sun dead keys)
 fr_mac          ch: French (Switzerland, Macintosh)
 de_mac          ch: German (Switzerland, Macintosh)
 ONS's: Syriac
 syc_phonetic    sy: Syriac (phonetic)
 where the eye: Kurdish (Eye, Latin Q)
 ku_f look: Kurdish (Eye, F)
 ku_alt sy: Kurdish (Syria, Latin Alt-Q)
 legacy, such as: Tajik (legacy)
 tam_unicode lk: Tamil (Sri Lanka, Unicode)
 tam_TAB lk: Tamil (Sri Lanka, TAB Typewriter)
 tis th: Thai (TIS-820.2538)
 pat             th: Thai (Pattachote)
 f               tr: Turkish (F)
 alt             tr: Turkish (Alt-Q)
 sundeadkeys     tr: Turkish (Sun dead keys)
 where tr: Kurdish (Turkey, Latin Q)
 ku_f tr: Kurdish (Turkey, F)
 ku_alt tr: Kurdish (Turkey, Latin Alt-Q)
 intl            tr: Turkish (international with dead keys)
 crh             tr: Crimean Tatar (Turkish Q)
 crh_f           tr: Crimean Tatar (Turkish F)
 crh_alt         tr: Crimean Tatar (Turkish Alt-Q)
 indigenous      tw: Taiwanese (indigenous)
 saisiyat tw: Saisiyat (Taiwan)
 phonetic        ua: Ukrainian (phonetic)
 typewriter      ua: Ukrainian (typewriter)
 winkeys         ua: Ukrainian (WinKeys)
 legacy ua: Ukrainian (legacy)
 rstu ua: Ukrainian (standard RSTU)
 rstu_ru ua: Russian (Ukraine, s largest standard)
 homophonic rain Ukrainian (homophonic)
 extd            gb: English (UK, extended WinKeys)
 intl            gb: English (UK, international with dead keys)
 dvorak          gb: English (UK, Dvorak)
 dvorakukp       gb: English (UK, Dvorak with UK punctuation)
 mac             gb: English (UK, Macintosh)
 mac_intl        gb: English (UK, Macintosh international)
 colemak         gb: English (UK, Colemak)
 latin to: Uzbek (Latin)
 kr104 kr: Korean (101/104 key compatible)
 CloGaelach yes: CloGaelach
 UnicodeExpert   ie: Irish (UnicodeExpert)
 ogam are: Ogham
 ogam_is434 ie: Ogham (IS434)
 urd-crulp       pk: Urdu (Pakistan, CRULP)
 blue-ENA CP: Urdu (Pakistan, NLA)
 ara pk: Arabic (Pakistan)
 moved pk: Sindhi
 legacy epo: Esperanto (displaced semicolon and quote, obsolete)
 Forest voice: Igbo
 yoruba          ng: Yoruba
 hausa NG: Hausa
 left_hand       brai: Braille (left hand)
 right_hand      brai: Braille (right hand)
 alt             tm: Turkmen (Alt-Q)
 fr-oss          ml: French (Mali, alternative)
 us-mac ml: English (Mali, US Macintosh)
 US-intl ml: English (Mali, U.S. International)
 kik ke: Kikuyu
 qwerty-bay      ph: Filipino (QWERTY Baybayin)
 capewell-dvorak ph: Filipino (Capewell-Dvorak Latin)
 capewell-dvorak-bay ph: Filipino (Capewell-Dvorak Baybayin)
 capewell-qwerf2k6 ph: Filipino (Capewell-QWERF 2006 Latin)
 capewell-qwerf2k6-bay ph: Filipino (Capewell-QWERF 2006 Baybayin)
 colemak         ph: Filipino (Colemak Latin)
 colemak-bay sw: Filipino (Colemak Baybayin)
 dvorak          ph: Filipino (Dvorak Latin)
 dvorak-bay pH: Filipino (Dvorak Baybayin)
 gag md: Gagauz
« Last Edit: 10. September 2014, 18:01:27 by schpankme »

Offline jmak

  • Neuling
  • *
  • Posts: 41
Re: How to add second keyboard layout to lxqt
« Reply #7 on: 10. September 2014, 18:12:44 »
I put the command in the .xinitrc file but it still doesn't work.

Code: [Select]
#!/bin/sh

#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

DEFAULT_SESSION=startlxde-qt
case $1 in
  lxde-qt) exec  ck-launch-session dbus-launch startlxde-qt ;;
  *) exec ck-launch-session dbus-launch  $DEFAULT_SESSION ;;
esac

# fix pcmanfm
dbus-launch pcmanfm

setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,hu

Offline schpankme

  • Held Mitglied
  • *****
  • Posts: 1600
  • High Carb / Low Fat / Vegan
  • Branch: Stable
  • Desktop: Qt..i3..OpenRC..Eudev
  • GPU Card: GTX 780 Ti
  • GPU driver: video-nouveau
  • Kernel: 4.4.45-1 x64
  • Skill: Advanced
Re: How to add second keyboard layout to lxqt
« Reply #8 on: 10. September 2014, 18:20:06 »
Looks like the Format is changed in the Arch wiki compared with the LXDE wiki.

LXDE
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,hu

Arch
setxkbmap -model pc104 -layout us,hu -variant ,dvorak -option grp:alt_shift_toggle

Offline jmak

  • Neuling
  • *
  • Posts: 41
Re: How to add second keyboard layout to lxqt
« Reply #9 on: 10. September 2014, 20:04:55 »
Looks like the Format is changed in the Arch wiki compared with the LXDE wiki.

LXDE
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,hu

Arch
setxkbmap -model pc104 -layout us,hu -variant ,dvorak -option grp:alt_shift_toggle

This is not working either.

However, I figured out that  the /etc/X11/xorg.conf/20-keyboard.conf file should be modified.

I already successfully modified it and it works fine, however, at each reboot the system overwrites that file and I am back to square one.

I would like to know how prevent the system to overwrite the 20-keyboard.conf  file.

I followed instructions on arch wiki and I created a 10-keyboard.conf file but the system ignores that one.

Offline schpankme

  • Held Mitglied
  • *****
  • Posts: 1600
  • High Carb / Low Fat / Vegan
  • Branch: Stable
  • Desktop: Qt..i3..OpenRC..Eudev
  • GPU Card: GTX 780 Ti
  • GPU driver: video-nouveau
  • Kernel: 4.4.45-1 x64
  • Skill: Advanced
Re: How to add second keyboard layout to lxqt
« Reply #10 on: 10. September 2014, 20:19:12 »
Maybe there is a compatibility issue -- what keyboard -- is showing in  /var/log/Xorg.0.log   ?

Does  "setxkbmap hu"  work?

Offline schpankme

  • Held Mitglied
  • *****
  • Posts: 1600
  • High Carb / Low Fat / Vegan
  • Branch: Stable
  • Desktop: Qt..i3..OpenRC..Eudev
  • GPU Card: GTX 780 Ti
  • GPU driver: video-nouveau
  • Kernel: 4.4.45-1 x64
  • Skill: Advanced
Re: How to add second keyboard layout to lxqt
« Reply #11 on: 10. September 2014, 20:37:46 »
This is not working either.

However, I figured out that  the /etc/X11/xorg.conf/20-keyboard.conf file should be modified.

I already successfully modified it and it works fine, however, at each reboot the system overwrites that file and I am back to square one.

I would like to know how prevent the system to overwrite the 20-keyboard.conf  file.

I followed instructions on arch wiki and I created a 10-keyboard.conf file but the system ignores that one.


Alright it looks like you need to "enable keyboardctl"
Code: [Select]
sudo systemctl enable keyboardctl
Verify status
Code: [Select]
sudo systemctl status keyboardctl

As you noted changes to  /etc/X11/xorg.conf.d/20-keyboard.conf
Code: [Select]
# Keyboard layout - Don't modify! Use keyboardctl instead!

Section "InputClass"
    Identifier "system-keyboard"
    MatchIsKeyboard "on"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us"
    Option "XkbVariant" "hu"
    Option "XkbOptions" "grp:alt_shift_toggle"

EndSection
« Last Edit: 10. September 2014, 20:45:49 by schpankme »

Offline jmak

  • Neuling
  • *
  • Posts: 41
Re: How to add second keyboard layout to lxqt
« Reply #12 on: 10. September 2014, 22:39:16 »
This is interesting.

After reboot, I get the old 20-keyboard.conf file back, meaning it doesn't work, but if I issue the command
Code: [Select]
sudo systemctl enable keyboardctl
like magic the modified 20-keyboard.conf reappears and the keyboard switch starts working.

As I see it the
Code: [Select]
sudo systemctl enable keyboardctl
is not final just for one sesssion.

I don't know what causes this. When I run the
Code: [Select]
sudo systemctl status keyboardctl
command I get some error messages. I don't know they have something to do with this.

Here is the output:
Code: [Select]

[mak@myhost ~]$ sudo systemctl status keyboardctl
[sudo] password for mak:
● keyboardctl.service - Setup keyboard layout
   Loaded: loaded (/usr/lib/systemd/system/keyboardctl.service; enabled)
   Active: failed (Result: exit-code) since Wed 2014-09-10 15:53:02 EDT; 29min ago
     Docs: man:keyboardctl
 Main PID: 137 (code=exited, status=1/FAILURE)

Sep 10 15:53:02 myhost systemd[1]: keyboardctl.service: main process exited, code...URE
Sep 10 15:53:02 myhost systemd[1]: Failed to start Setup keyboard layout.
Sep 10 15:53:02 myhost systemd[1]: Unit keyboardctl.service entered failed state.
Sep 10 15:53:02 myhost keyboardctl[137]: /usr/sbin/ckbcomp: Can not find file "sym...ry
Sep 10 15:53:02 myhost keyboardctl[137]: error: failed to create keyboard map (ckb.....
Hint: Some lines were ellipsized, use -l to show in full.
[mak@myhost ~]$

Offline schpankme

  • Held Mitglied
  • *****
  • Posts: 1600
  • High Carb / Low Fat / Vegan
  • Branch: Stable
  • Desktop: Qt..i3..OpenRC..Eudev
  • GPU Card: GTX 780 Ti
  • GPU driver: video-nouveau
  • Kernel: 4.4.45-1 x64
  • Skill: Advanced
Re: How to add second keyboard layout to lxqt
« Reply #13 on: 11. September 2014, 00:40:20 »
It looks like keyboardctl writes to   /etc/keyboard.conf,  which loads at startup with keyboardctl.service.

Re: introducing keyboardctl
https://forum.manjaro.org/index.php?topic=2712.msg22579#msg22579

Offline jmak

  • Neuling
  • *
  • Posts: 41
Re: How to add second keyboard layout to lxqt
« Reply #14 on: 11. September 2014, 02:04:19 »
It looks like keyboardctl writes to   /etc/keyboard.conf,  which loads at startup with keyboardctl.service.

Re: introducing keyboardctl
https://forum.manjaro.org/index.php?topic=2712.msg22579#msg22579

Thanks for the help schpankme,

I think everything set up properly, the only problem is that keyboardctl.service doesn't start automatically.


At each reboot I have to issue the command
Code: [Select]
sudo systemctl enable keyboardctl

then everything is fine until the computer is up and running.

I start another thread to find out  why the service won't start automatically.
« Last Edit: 11. September 2014, 02:13:52 by jmak »