VL Solutions => Packager training and help => Topic started by: black-clover on September 13, 2017, 02:26:25 pm

Title: mjwm
Post by: black-clover on September 13, 2017, 02:26:25 pm

I've made a slackbuild of mjwm, a small script which creates menus for jwm windows manager without python dependencies.

I tried the package on VL Light and it works very well, easy to insert in .jwmrc, just like xdgmenumaker.
I'd like to share the slackbuild, but am not sure if I should create a pull request from VL-core or post it to explore/projects.
Title: Re: mjwm
Post by: nightflier on September 13, 2017, 04:49:19 pm
The preferred way would be to commit your slackbuild to your bitbucket clone of VLCore/vl72 and submit a pull request.
Title: Re: mjwm
Post by: black-clover on September 13, 2017, 06:35:07 pm
will do.
Title: Re: mjwm
Post by: nightflier on September 14, 2017, 04:43:42 am
Pull request merged, package built and tested. Works well.  :)

Thank you very much!
Title: Re: mjwm
Post by: black-clover on September 14, 2017, 10:13:36 am
Glad to hear that,

Title: Re: mjwm
Post by: M0E-lnx on September 14, 2017, 02:12:38 pm
Packages moved to stable repositories.  Thanks for contributing.
Title: Re: mjwm
Post by: black-clover on September 14, 2017, 08:59:20 pm
my pleasure to give something back after getting so much.

Here is a copy of how I set up .jwmrc to include the .jwmrc-mjwm file with the generated menu and run mjwm with the refresh command.

Code: [Select]
<?xml version="1.0"?>

    <!-- The root menu. -->
    <RootMenu onroot="12">
        <Program icon="mini.xterm_32x32.xpm" label="Terminal">xterm</Program>
<Program label="File Manager">spacefm</Program>
<Menu label="Favorites">
<Program label="Trelby">/opt/trelby/src/</Program>
<Menu label="Exit">
        <Exit label="Logout" confirm="true" icon="quit.png"/>
<Program label="Reboot">gksu reboot</Program>
<Program label="Turn off">gksu halt</Program>
<Program label="Refresh Menu">mjwm; jwm -reload </Program>
        <Restart label="Restart JWM" icon="restart.png"/>


   <!-- Additional tray attributes: autohide, width, border, layer, layout -->
   <Tray  x="0" y="-1" height="32" autohide="false">

      <!-- Additional TrayButton attribute: label -->
      <TrayButton label="JWM">root:1</TrayButton>

      <TrayButton label="_">showdesktop</TrayButton>

      <!-- Additional Pager attribute: labeled -->
      <Pager labeled="true"/>

      <TaskList maxwidth="256"/>


      <!-- Additional Swallow attribute: height -->
      <Swallow name="xload" width="64">
         xload -nolabel -bg black -fg red -hl white

      <Clock format="%H:%M">xclock</Clock>


   <!-- Visual Styles -->



   <!-- Additional TrayStyle attribute: insert -->






   <!-- Virtual Desktops -->
   <!-- Desktop tags can be contained within Desktops for desktop names. -->
   <Desktops width="4" height="2">
      <!-- Default background. Note that a Background tag can be
           contained within a Desktop tag to give a specific background
           for that desktop.
<Background type="image">/usr/share/wallpapers/jwm.png</Background>

   <!-- Double click speed (in milliseconds) -->

   <!-- Double click delta (in pixels) -->

   <!-- The focus model (sloppy or click) -->

   <!-- The snap mode (none, screen, or border) -->
   <SnapMode distance="10">border</SnapMode>

   <!-- The move mode (outline or opaque) -->

   <!-- The resize mode (outline or opaque) -->

    <StartupCommand>sleep 2s &amp;&amp; conky -c ~/.conky/conkyrc_all &amp;</StartupCommand>
    <StartupCommand>sleep 2s &amp;&amp; conky -c ~/.conky/conkyrc_key &amp;</StartupCommand>

   <!-- Key bindings -->
   <Key key="Up">up</Key>
   <Key key="Down">down</Key>
   <Key key="Right">right</Key>
   <Key key="Left">left</Key>
   <Key key="h">left</Key>
   <Key key="j">down</Key>
   <Key key="k">up</Key>
   <Key key="l">right</Key>
   <Key key="Return">select</Key>
   <Key key="Escape">escape</Key>

   <Key mask="A" key="Tab">next</Key>
   <Key mask="A" key="F4">close</Key>
   <Key mask="A" key="#">desktop#</Key>
   <Key mask="A" key="F1">root:1</Key>
   <Key mask="A" key="F2">window</Key>
   <Key mask="A" key="F10">maximize</Key>
   <Key mask="A" key="Right">rdesktop</Key>
   <Key mask="A" key="Left">ldesktop</Key>
   <Key mask="A" key="Up">udesktop</Key>
   <Key mask="A" key="Down">ddesktop</Key>