Unable to remap CapsLock key on AwesomeWM with iBus-Mozc












0















I'm trying to remap CapsLock to Ctrl, but seems unable to remap in all ways.



Also, the key has a strange behavior.



First, I use japanese keyboard. Therefore, XKBLAYOUT = "jp" in /etc/default/keyboard.



And I use Awesome as an Window Manager. While I login using gnome, CapsLock works as CapsLock. However, When I login using AwesomeWM, CapsLock do nothing.



I want to use CapsLock as Ctrl on Awesome. I have tried followings:





  • setxkbmap -- setxkbmap -option ctrl:nocaps.


  • .xmodmap

  • add a .conf file to /etc/X11/xorg.conf.d/

  • edit XKBOPTION in /etc/default/keyboard


However, all of these are never able CapsLock to work as Ctrl, although xev and xmodmap -pke returns that CapsLock(keycode 66) is mapped to Ctrl-L.



Also, only when I map CapsLock to CapsLock like that I write keycode 66 = Caps_Lock in .xmodmap, the key works. If I tried to map to other keys than CapsLock like Esc, the key don't do its work as it didn't in the case of Ctrl.



Does anyone knows what happens?










share|improve this question





























    0















    I'm trying to remap CapsLock to Ctrl, but seems unable to remap in all ways.



    Also, the key has a strange behavior.



    First, I use japanese keyboard. Therefore, XKBLAYOUT = "jp" in /etc/default/keyboard.



    And I use Awesome as an Window Manager. While I login using gnome, CapsLock works as CapsLock. However, When I login using AwesomeWM, CapsLock do nothing.



    I want to use CapsLock as Ctrl on Awesome. I have tried followings:





    • setxkbmap -- setxkbmap -option ctrl:nocaps.


    • .xmodmap

    • add a .conf file to /etc/X11/xorg.conf.d/

    • edit XKBOPTION in /etc/default/keyboard


    However, all of these are never able CapsLock to work as Ctrl, although xev and xmodmap -pke returns that CapsLock(keycode 66) is mapped to Ctrl-L.



    Also, only when I map CapsLock to CapsLock like that I write keycode 66 = Caps_Lock in .xmodmap, the key works. If I tried to map to other keys than CapsLock like Esc, the key don't do its work as it didn't in the case of Ctrl.



    Does anyone knows what happens?










    share|improve this question



























      0












      0








      0


      0






      I'm trying to remap CapsLock to Ctrl, but seems unable to remap in all ways.



      Also, the key has a strange behavior.



      First, I use japanese keyboard. Therefore, XKBLAYOUT = "jp" in /etc/default/keyboard.



      And I use Awesome as an Window Manager. While I login using gnome, CapsLock works as CapsLock. However, When I login using AwesomeWM, CapsLock do nothing.



      I want to use CapsLock as Ctrl on Awesome. I have tried followings:





      • setxkbmap -- setxkbmap -option ctrl:nocaps.


      • .xmodmap

      • add a .conf file to /etc/X11/xorg.conf.d/

      • edit XKBOPTION in /etc/default/keyboard


      However, all of these are never able CapsLock to work as Ctrl, although xev and xmodmap -pke returns that CapsLock(keycode 66) is mapped to Ctrl-L.



      Also, only when I map CapsLock to CapsLock like that I write keycode 66 = Caps_Lock in .xmodmap, the key works. If I tried to map to other keys than CapsLock like Esc, the key don't do its work as it didn't in the case of Ctrl.



      Does anyone knows what happens?










      share|improve this question
















      I'm trying to remap CapsLock to Ctrl, but seems unable to remap in all ways.



      Also, the key has a strange behavior.



      First, I use japanese keyboard. Therefore, XKBLAYOUT = "jp" in /etc/default/keyboard.



      And I use Awesome as an Window Manager. While I login using gnome, CapsLock works as CapsLock. However, When I login using AwesomeWM, CapsLock do nothing.



      I want to use CapsLock as Ctrl on Awesome. I have tried followings:





      • setxkbmap -- setxkbmap -option ctrl:nocaps.


      • .xmodmap

      • add a .conf file to /etc/X11/xorg.conf.d/

      • edit XKBOPTION in /etc/default/keyboard


      However, all of these are never able CapsLock to work as Ctrl, although xev and xmodmap -pke returns that CapsLock(keycode 66) is mapped to Ctrl-L.



      Also, only when I map CapsLock to CapsLock like that I write keycode 66 = Caps_Lock in .xmodmap, the key works. If I tried to map to other keys than CapsLock like Esc, the key don't do its work as it didn't in the case of Ctrl.



      Does anyone knows what happens?







      x11 keyboard-shortcuts keyboard awesome






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 1 hour ago







      Szkieletor

















      asked 15 hours ago









      SzkieletorSzkieletor

      83




      83






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I use setxbmap and xcape to remap CapsLock.

          Holding down CapsLock is Ctrl and short press results in Esc. Those tools may help.



          I have the following in my .xinitrc:



          setxkbmap -option 'caps:ctrl_modifier'
          xcape -e 'Caps_Lock=Escape'





          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%2f497424%2funable-to-remap-capslock-key-on-awesomewm-with-ibus-mozc%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I use setxbmap and xcape to remap CapsLock.

            Holding down CapsLock is Ctrl and short press results in Esc. Those tools may help.



            I have the following in my .xinitrc:



            setxkbmap -option 'caps:ctrl_modifier'
            xcape -e 'Caps_Lock=Escape'





            share|improve this answer




























              0














              I use setxbmap and xcape to remap CapsLock.

              Holding down CapsLock is Ctrl and short press results in Esc. Those tools may help.



              I have the following in my .xinitrc:



              setxkbmap -option 'caps:ctrl_modifier'
              xcape -e 'Caps_Lock=Escape'





              share|improve this answer


























                0












                0








                0







                I use setxbmap and xcape to remap CapsLock.

                Holding down CapsLock is Ctrl and short press results in Esc. Those tools may help.



                I have the following in my .xinitrc:



                setxkbmap -option 'caps:ctrl_modifier'
                xcape -e 'Caps_Lock=Escape'





                share|improve this answer













                I use setxbmap and xcape to remap CapsLock.

                Holding down CapsLock is Ctrl and short press results in Esc. Those tools may help.



                I have the following in my .xinitrc:



                setxkbmap -option 'caps:ctrl_modifier'
                xcape -e 'Caps_Lock=Escape'






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 12 hours ago









                plothploth

                888117




                888117






























                    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%2f497424%2funable-to-remap-capslock-key-on-awesomewm-with-ibus-mozc%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

                    Entries order in /etc/network/interfaces

                    新発田市

                    Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)