JWM – Moving windows with new keyboard shortcuts

Forum Forums General Tips and Tricks JWM – Moving windows with new keyboard shortcuts

  • This topic has 2 replies, 3 voices, and was last updated Nov 5-10:58 pm by marcelocripe.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #92427
    Member
    Wallon

      Dear Users,

      If you like JWM and want to use [the logo key (Windows) + an arrow key] to directly place your windows vertically or horizontally, I suggest this;

      Logo key + right arrow = the window will be on the right vertically on half the screen.
      Logo key + left arrow = the window will be on the left vertically on half the screen.
      Logo key + up arrow = the window will be at the top horizontally on half the screen.
      Logo key + down arrow = the window will be at the bottom horizontally on half the screen.

      Do you like it? Then I invite you to add a few lines to your JWM configuration file.

      1) Right click on the JWM desktop,
      2) Select in the menu, the line “Control Center”,
      3) In the “Desktop” tab, click on the “JWM Settings” icon,
      4) Attention, you have 6 tabs which configure JWM. You must select the “keys” tab,
      5) Insert in the line for example number 27 these 5 lines;

      
      <!-- Move windows vertically or horizontally -->
      <Key mask="4" key="Left">maxleft</Key>
      <Key mask="4" key="Right">maxright</Key>
      <Key mask="4" key="Up">maxtop</Key>
      <Key mask="4" key="Down">maxbottom</Key>
      
      

      6) After adding the 5 lines, select the “File” tab in the menu and then “Save”.
      7) Select the “File” tab from the menu and then “Exit”.

      You can exit your session by pressing “Logout”. When you restart, you can use these magic keys!

      Note;

      In antiX, there is a bug in this file, lines 23 and 24 must be corrected. Without this correction, the keyboard shortcuts will not work.

      For the correction, the following lines should be replaced;

      
      <Key key="XF86MonBrightnessDown" exec:backlight-brightness -5</Key>
      <Key key="XF86MonBrightnessUp" exec:backlight-brightness +5</Key>
      
      

      with;

      
      <Key key="XF86MonBrightnessDown">exec:backlight-brightness -5</Key>
      <Key key="XF86MonBrightnessUp">exec:backlight-brightness +5</Key>
      
      

      This was tested on a computer with 2 screens. It works very well on the left screen and on the right screen.

      In any case, I am not and will never be responsible for any damage to your computer after modifying your JWM configuration file.

      Wallon

      You will find the original in French in the *.txt file.

      #92461
      Member
      olsztyn
        Helpful
        Up
        0
        ::

        In antiX, there is a bug in this file, lines 23 and 24 must be corrected. Without this correction, the keyboard shortcuts will not work.
        For the correction, the following lines should be replaced;

        Thank you Wallon for some great tips on JWM configuration. And thanks for pointing out those bugs. I had them corrected some time ago as well in my install.
        Just my additional comment is that configuration of JWM is really very simple once basics are understood by user.

        Live antiX Boot Options (Previously posted by Xecure):
        https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_Parameters

        #92471
        Member
        marcelocripe
          Helpful
          Up
          0
          ::

          Hello dear Wallon.

          Thank you very much for this excellent tutorial.

          Attached is the Brazilian Portuguese version.

          – – – – –

          Olá, prezado Wallon.

          Muito obrigado por este excelente tutorial.

          Segue em anexo com a versão em idioma Português do Brasil.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.