Where is the input method configuration file?












22















My ibus input method was broken after an update. So I switched to fcitx.



Actually, there are a handful IMs (Input Methods) installed in my Fedora 19 system, e.g. fcitx, ibus, yong, etc.



However, I don't know how to configure them. My default IM for gnome-terminal is yong, ibus for gmrun. As for firefox or chrome, I guess they use ibus by default, because GTK_IM_MODULE=ibus.



There are just-work solutions. I can switch IM by right-click-menu in some applications like gnome-terminal or gmrun. I can also specify IM with GTK_IM_MODULE. But how to do it automatically?



I know the IM settings have something to do with configuration files like




  • ~/.xinputrc

  • /etc/X11/xinit/xinputrc

  • /etc/X11/xinit/xinput.d/ibus.conf

  • /etc/X11/xinit/xinput.d/fcitx.conf

  • /etc/X11/xinit/xinitrc

  • /etc/alternatives/xinputrc


The questions are




  • How to configure IM properly?

  • What configuration files really matter? In which execution order?










share|improve this question




















  • 1





    Do you mean selecting an IME to use by an application or configuring a particular IME?

    – L29Ah
    Aug 13 '17 at 23:34
















22















My ibus input method was broken after an update. So I switched to fcitx.



Actually, there are a handful IMs (Input Methods) installed in my Fedora 19 system, e.g. fcitx, ibus, yong, etc.



However, I don't know how to configure them. My default IM for gnome-terminal is yong, ibus for gmrun. As for firefox or chrome, I guess they use ibus by default, because GTK_IM_MODULE=ibus.



There are just-work solutions. I can switch IM by right-click-menu in some applications like gnome-terminal or gmrun. I can also specify IM with GTK_IM_MODULE. But how to do it automatically?



I know the IM settings have something to do with configuration files like




  • ~/.xinputrc

  • /etc/X11/xinit/xinputrc

  • /etc/X11/xinit/xinput.d/ibus.conf

  • /etc/X11/xinit/xinput.d/fcitx.conf

  • /etc/X11/xinit/xinitrc

  • /etc/alternatives/xinputrc


The questions are




  • How to configure IM properly?

  • What configuration files really matter? In which execution order?










share|improve this question




















  • 1





    Do you mean selecting an IME to use by an application or configuring a particular IME?

    – L29Ah
    Aug 13 '17 at 23:34














22












22








22


6






My ibus input method was broken after an update. So I switched to fcitx.



Actually, there are a handful IMs (Input Methods) installed in my Fedora 19 system, e.g. fcitx, ibus, yong, etc.



However, I don't know how to configure them. My default IM for gnome-terminal is yong, ibus for gmrun. As for firefox or chrome, I guess they use ibus by default, because GTK_IM_MODULE=ibus.



There are just-work solutions. I can switch IM by right-click-menu in some applications like gnome-terminal or gmrun. I can also specify IM with GTK_IM_MODULE. But how to do it automatically?



I know the IM settings have something to do with configuration files like




  • ~/.xinputrc

  • /etc/X11/xinit/xinputrc

  • /etc/X11/xinit/xinput.d/ibus.conf

  • /etc/X11/xinit/xinput.d/fcitx.conf

  • /etc/X11/xinit/xinitrc

  • /etc/alternatives/xinputrc


The questions are




  • How to configure IM properly?

  • What configuration files really matter? In which execution order?










share|improve this question
















My ibus input method was broken after an update. So I switched to fcitx.



Actually, there are a handful IMs (Input Methods) installed in my Fedora 19 system, e.g. fcitx, ibus, yong, etc.



However, I don't know how to configure them. My default IM for gnome-terminal is yong, ibus for gmrun. As for firefox or chrome, I guess they use ibus by default, because GTK_IM_MODULE=ibus.



There are just-work solutions. I can switch IM by right-click-menu in some applications like gnome-terminal or gmrun. I can also specify IM with GTK_IM_MODULE. But how to do it automatically?



I know the IM settings have something to do with configuration files like




  • ~/.xinputrc

  • /etc/X11/xinit/xinputrc

  • /etc/X11/xinit/xinput.d/ibus.conf

  • /etc/X11/xinit/xinput.d/fcitx.conf

  • /etc/X11/xinit/xinitrc

  • /etc/alternatives/xinputrc


The questions are




  • How to configure IM properly?

  • What configuration files really matter? In which execution order?







linux xinput input-method






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 14 '18 at 4:18









slm

252k70533685




252k70533685










asked Jul 13 '14 at 9:45









Martin WangMartin Wang

21627




21627








  • 1





    Do you mean selecting an IME to use by an application or configuring a particular IME?

    – L29Ah
    Aug 13 '17 at 23:34














  • 1





    Do you mean selecting an IME to use by an application or configuring a particular IME?

    – L29Ah
    Aug 13 '17 at 23:34








1




1





Do you mean selecting an IME to use by an application or configuring a particular IME?

– L29Ah
Aug 13 '17 at 23:34





Do you mean selecting an IME to use by an application or configuring a particular IME?

– L29Ah
Aug 13 '17 at 23:34










2 Answers
2






active

oldest

votes


















0














I have my X input method selected via env vars



$ set | grep fci
GTK_IM_MODULE=fcitx
IM_CONFIG_PREFERRED_RULE=zh_CN,fcitx:zh_TW,fcitx:zh_HK,fcitx:zh_SG,fcitx:ja_JP,fcitx:ko_KR,fcitx:vi_VN,fcitx
QT_IM_MODULE=fcitx
XIM=fcitx
XIM_PROGRAM=fcitx
XMODIFIERS=@im=fcitx


And although I use KDE Plasma desktop I have fcitx-config-gtk3 installed to configure my desired languages and other options






share|improve this answer































    0














    I recommend you use the fcitx-configtool to open the fcitx config window and then you can change Extra key for trigger input method to whatever you want.



    Then you can cd into the fcitx config folder: cd ~/.config/fcitx and use chmod 444 profile to change the permission of the profile to read only, so that no one can change back to default value.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f144277%2fwhere-is-the-input-method-configuration-file%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      I have my X input method selected via env vars



      $ set | grep fci
      GTK_IM_MODULE=fcitx
      IM_CONFIG_PREFERRED_RULE=zh_CN,fcitx:zh_TW,fcitx:zh_HK,fcitx:zh_SG,fcitx:ja_JP,fcitx:ko_KR,fcitx:vi_VN,fcitx
      QT_IM_MODULE=fcitx
      XIM=fcitx
      XIM_PROGRAM=fcitx
      XMODIFIERS=@im=fcitx


      And although I use KDE Plasma desktop I have fcitx-config-gtk3 installed to configure my desired languages and other options






      share|improve this answer




























        0














        I have my X input method selected via env vars



        $ set | grep fci
        GTK_IM_MODULE=fcitx
        IM_CONFIG_PREFERRED_RULE=zh_CN,fcitx:zh_TW,fcitx:zh_HK,fcitx:zh_SG,fcitx:ja_JP,fcitx:ko_KR,fcitx:vi_VN,fcitx
        QT_IM_MODULE=fcitx
        XIM=fcitx
        XIM_PROGRAM=fcitx
        XMODIFIERS=@im=fcitx


        And although I use KDE Plasma desktop I have fcitx-config-gtk3 installed to configure my desired languages and other options






        share|improve this answer


























          0












          0








          0







          I have my X input method selected via env vars



          $ set | grep fci
          GTK_IM_MODULE=fcitx
          IM_CONFIG_PREFERRED_RULE=zh_CN,fcitx:zh_TW,fcitx:zh_HK,fcitx:zh_SG,fcitx:ja_JP,fcitx:ko_KR,fcitx:vi_VN,fcitx
          QT_IM_MODULE=fcitx
          XIM=fcitx
          XIM_PROGRAM=fcitx
          XMODIFIERS=@im=fcitx


          And although I use KDE Plasma desktop I have fcitx-config-gtk3 installed to configure my desired languages and other options






          share|improve this answer













          I have my X input method selected via env vars



          $ set | grep fci
          GTK_IM_MODULE=fcitx
          IM_CONFIG_PREFERRED_RULE=zh_CN,fcitx:zh_TW,fcitx:zh_HK,fcitx:zh_SG,fcitx:ja_JP,fcitx:ko_KR,fcitx:vi_VN,fcitx
          QT_IM_MODULE=fcitx
          XIM=fcitx
          XIM_PROGRAM=fcitx
          XMODIFIERS=@im=fcitx


          And although I use KDE Plasma desktop I have fcitx-config-gtk3 installed to configure my desired languages and other options







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 16 '18 at 18:51









          shigazarushigazaru

          22827




          22827

























              0














              I recommend you use the fcitx-configtool to open the fcitx config window and then you can change Extra key for trigger input method to whatever you want.



              Then you can cd into the fcitx config folder: cd ~/.config/fcitx and use chmod 444 profile to change the permission of the profile to read only, so that no one can change back to default value.






              share|improve this answer




























                0














                I recommend you use the fcitx-configtool to open the fcitx config window and then you can change Extra key for trigger input method to whatever you want.



                Then you can cd into the fcitx config folder: cd ~/.config/fcitx and use chmod 444 profile to change the permission of the profile to read only, so that no one can change back to default value.






                share|improve this answer


























                  0












                  0








                  0







                  I recommend you use the fcitx-configtool to open the fcitx config window and then you can change Extra key for trigger input method to whatever you want.



                  Then you can cd into the fcitx config folder: cd ~/.config/fcitx and use chmod 444 profile to change the permission of the profile to read only, so that no one can change back to default value.






                  share|improve this answer













                  I recommend you use the fcitx-configtool to open the fcitx config window and then you can change Extra key for trigger input method to whatever you want.



                  Then you can cd into the fcitx config folder: cd ~/.config/fcitx and use chmod 444 profile to change the permission of the profile to read only, so that no one can change back to default value.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 15 at 18:49









                  Jesus Muhammad ChristJesus Muhammad Christ

                  14




                  14






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f144277%2fwhere-is-the-input-method-configuration-file%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How to make a Squid Proxy server?

                      Is this a new Fibonacci Identity?

                      19世紀