How do I change key bindings in Lubuntu? (e.g. to lock screen with Super-L instead of Ctrl-Alt-L)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I am pretty much used to Windows Key + L shortcut to lock the screen. Ubuntu has a nice config app to change key bindings. Unfortunately I could not find similar app in Lubuntu.



How can I change key-bindings in Lubuntu?










share|improve this question



























    up vote
    0
    down vote

    favorite












    I am pretty much used to Windows Key + L shortcut to lock the screen. Ubuntu has a nice config app to change key bindings. Unfortunately I could not find similar app in Lubuntu.



    How can I change key-bindings in Lubuntu?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am pretty much used to Windows Key + L shortcut to lock the screen. Ubuntu has a nice config app to change key bindings. Unfortunately I could not find similar app in Lubuntu.



      How can I change key-bindings in Lubuntu?










      share|improve this question















      I am pretty much used to Windows Key + L shortcut to lock the screen. Ubuntu has a nice config app to change key bindings. Unfortunately I could not find similar app in Lubuntu.



      How can I change key-bindings in Lubuntu?







      keyboard lubuntu shortcut-keys keyboard-layout key-binding






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 29 at 8:34









      muru

      131k19275473




      131k19275473










      asked Jan 28 at 19:47









      Pawel Debski

      76841028




      76841028




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote













          If you want to do modifications to your keybinding in Lubuntu than have a look into less ~/.config/openbox/lubuntu-rc.xml There you will find all the present key-bindings.






          share|improve this answer



























            up vote
            0
            down vote



            accepted










            Unfortunately Lubuntu Openbox Configuration Manager does not have a "Keyboard" pane. You could install and use xbindkeys-config graphical tool for remapping keyboard, however I found it confusing and impractical for Lubuntu. No worry - editing key bindings in command line is pretty straightforward:



            $ cd $HOME # To got to your home directory
            $ find . -name "*lubuntu-rc*" -print # To search for lubuntu-rc.xml file
            ./.config/openbox/lubuntu-rc.xml
            $ vim ./.config/openbox/lubuntu-rc.xml # Open the file with vim editor, you can also use gedit


            The beginning of the file says:



            <?xml version="1.0" encoding="UTF-8"?>
            <!-- Do not edit this file, it will be overwritten on install.
            Copy the file to $HOME/.config/openbox/ instead. -->
            <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
            <resistance>
            ...


            Don't worry, you can edit this file. It actually has been copied on creation of your user account and you can safely search for lock screen section, on vim on command mode use:



            /lock


            Then you will see something like this:



            <!-- Lock the screen on Ctrl + Alt + l-->
            <keybind key="C-A-l">
            <action name="Execute">
            <command>lxsession-default lock</command>
            </action>
            </keybind>


            Change it to:



            <keybind key="W-l">
            <action name="Execute">
            <command>lxsession-default lock</command>
            </action>
            </keybind>


            the mark <!-- --> denotes a comment, so you can make notes inside, to be able to remember how to change it back if you wish.



            Then save changes, reboot and you'll be able to lock the screen with Windows + L.






            share|improve this answer






















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "89"
              ;
              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',
              convertImagesToLinks: true,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000746%2fhow-do-i-change-key-bindings-in-lubuntu-e-g-to-lock-screen-with-super-l-inste%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote













              If you want to do modifications to your keybinding in Lubuntu than have a look into less ~/.config/openbox/lubuntu-rc.xml There you will find all the present key-bindings.






              share|improve this answer
























                up vote
                1
                down vote













                If you want to do modifications to your keybinding in Lubuntu than have a look into less ~/.config/openbox/lubuntu-rc.xml There you will find all the present key-bindings.






                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  If you want to do modifications to your keybinding in Lubuntu than have a look into less ~/.config/openbox/lubuntu-rc.xml There you will find all the present key-bindings.






                  share|improve this answer












                  If you want to do modifications to your keybinding in Lubuntu than have a look into less ~/.config/openbox/lubuntu-rc.xml There you will find all the present key-bindings.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 29 at 8:12









                  AlexOnLinux

                  38019




                  38019






















                      up vote
                      0
                      down vote



                      accepted










                      Unfortunately Lubuntu Openbox Configuration Manager does not have a "Keyboard" pane. You could install and use xbindkeys-config graphical tool for remapping keyboard, however I found it confusing and impractical for Lubuntu. No worry - editing key bindings in command line is pretty straightforward:



                      $ cd $HOME # To got to your home directory
                      $ find . -name "*lubuntu-rc*" -print # To search for lubuntu-rc.xml file
                      ./.config/openbox/lubuntu-rc.xml
                      $ vim ./.config/openbox/lubuntu-rc.xml # Open the file with vim editor, you can also use gedit


                      The beginning of the file says:



                      <?xml version="1.0" encoding="UTF-8"?>
                      <!-- Do not edit this file, it will be overwritten on install.
                      Copy the file to $HOME/.config/openbox/ instead. -->
                      <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
                      <resistance>
                      ...


                      Don't worry, you can edit this file. It actually has been copied on creation of your user account and you can safely search for lock screen section, on vim on command mode use:



                      /lock


                      Then you will see something like this:



                      <!-- Lock the screen on Ctrl + Alt + l-->
                      <keybind key="C-A-l">
                      <action name="Execute">
                      <command>lxsession-default lock</command>
                      </action>
                      </keybind>


                      Change it to:



                      <keybind key="W-l">
                      <action name="Execute">
                      <command>lxsession-default lock</command>
                      </action>
                      </keybind>


                      the mark <!-- --> denotes a comment, so you can make notes inside, to be able to remember how to change it back if you wish.



                      Then save changes, reboot and you'll be able to lock the screen with Windows + L.






                      share|improve this answer


























                        up vote
                        0
                        down vote



                        accepted










                        Unfortunately Lubuntu Openbox Configuration Manager does not have a "Keyboard" pane. You could install and use xbindkeys-config graphical tool for remapping keyboard, however I found it confusing and impractical for Lubuntu. No worry - editing key bindings in command line is pretty straightforward:



                        $ cd $HOME # To got to your home directory
                        $ find . -name "*lubuntu-rc*" -print # To search for lubuntu-rc.xml file
                        ./.config/openbox/lubuntu-rc.xml
                        $ vim ./.config/openbox/lubuntu-rc.xml # Open the file with vim editor, you can also use gedit


                        The beginning of the file says:



                        <?xml version="1.0" encoding="UTF-8"?>
                        <!-- Do not edit this file, it will be overwritten on install.
                        Copy the file to $HOME/.config/openbox/ instead. -->
                        <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
                        <resistance>
                        ...


                        Don't worry, you can edit this file. It actually has been copied on creation of your user account and you can safely search for lock screen section, on vim on command mode use:



                        /lock


                        Then you will see something like this:



                        <!-- Lock the screen on Ctrl + Alt + l-->
                        <keybind key="C-A-l">
                        <action name="Execute">
                        <command>lxsession-default lock</command>
                        </action>
                        </keybind>


                        Change it to:



                        <keybind key="W-l">
                        <action name="Execute">
                        <command>lxsession-default lock</command>
                        </action>
                        </keybind>


                        the mark <!-- --> denotes a comment, so you can make notes inside, to be able to remember how to change it back if you wish.



                        Then save changes, reboot and you'll be able to lock the screen with Windows + L.






                        share|improve this answer
























                          up vote
                          0
                          down vote



                          accepted







                          up vote
                          0
                          down vote



                          accepted






                          Unfortunately Lubuntu Openbox Configuration Manager does not have a "Keyboard" pane. You could install and use xbindkeys-config graphical tool for remapping keyboard, however I found it confusing and impractical for Lubuntu. No worry - editing key bindings in command line is pretty straightforward:



                          $ cd $HOME # To got to your home directory
                          $ find . -name "*lubuntu-rc*" -print # To search for lubuntu-rc.xml file
                          ./.config/openbox/lubuntu-rc.xml
                          $ vim ./.config/openbox/lubuntu-rc.xml # Open the file with vim editor, you can also use gedit


                          The beginning of the file says:



                          <?xml version="1.0" encoding="UTF-8"?>
                          <!-- Do not edit this file, it will be overwritten on install.
                          Copy the file to $HOME/.config/openbox/ instead. -->
                          <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
                          <resistance>
                          ...


                          Don't worry, you can edit this file. It actually has been copied on creation of your user account and you can safely search for lock screen section, on vim on command mode use:



                          /lock


                          Then you will see something like this:



                          <!-- Lock the screen on Ctrl + Alt + l-->
                          <keybind key="C-A-l">
                          <action name="Execute">
                          <command>lxsession-default lock</command>
                          </action>
                          </keybind>


                          Change it to:



                          <keybind key="W-l">
                          <action name="Execute">
                          <command>lxsession-default lock</command>
                          </action>
                          </keybind>


                          the mark <!-- --> denotes a comment, so you can make notes inside, to be able to remember how to change it back if you wish.



                          Then save changes, reboot and you'll be able to lock the screen with Windows + L.






                          share|improve this answer














                          Unfortunately Lubuntu Openbox Configuration Manager does not have a "Keyboard" pane. You could install and use xbindkeys-config graphical tool for remapping keyboard, however I found it confusing and impractical for Lubuntu. No worry - editing key bindings in command line is pretty straightforward:



                          $ cd $HOME # To got to your home directory
                          $ find . -name "*lubuntu-rc*" -print # To search for lubuntu-rc.xml file
                          ./.config/openbox/lubuntu-rc.xml
                          $ vim ./.config/openbox/lubuntu-rc.xml # Open the file with vim editor, you can also use gedit


                          The beginning of the file says:



                          <?xml version="1.0" encoding="UTF-8"?>
                          <!-- Do not edit this file, it will be overwritten on install.
                          Copy the file to $HOME/.config/openbox/ instead. -->
                          <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
                          <resistance>
                          ...


                          Don't worry, you can edit this file. It actually has been copied on creation of your user account and you can safely search for lock screen section, on vim on command mode use:



                          /lock


                          Then you will see something like this:



                          <!-- Lock the screen on Ctrl + Alt + l-->
                          <keybind key="C-A-l">
                          <action name="Execute">
                          <command>lxsession-default lock</command>
                          </action>
                          </keybind>


                          Change it to:



                          <keybind key="W-l">
                          <action name="Execute">
                          <command>lxsession-default lock</command>
                          </action>
                          </keybind>


                          the mark <!-- --> denotes a comment, so you can make notes inside, to be able to remember how to change it back if you wish.



                          Then save changes, reboot and you'll be able to lock the screen with Windows + L.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Jan 29 at 14:20

























                          answered Jan 28 at 19:47









                          Pawel Debski

                          76841028




                          76841028



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000746%2fhow-do-i-change-key-bindings-in-lubuntu-e-g-to-lock-screen-with-super-l-inste%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              pylint3 and pip3 broken

                              Missing snmpget and snmpwalk

                              How to enroll fingerprints to Ubuntu 17.10 with VFS491