us ua ua

JWM

 

 

Installing and configuring the JWM window manager which is written for the X11 window system. This window manager is simple and easy to use and easy to configure. In this article I will show how to install and configure JWM on FreeBSD, as well as how to configure JWM on other BSD-UNIX, UNIX-like, GNU/Linux systems, the only difference is the installation and configuration options.

 

Let's install JWM:

 

cd /usr/ports/x11-wm/jwm/

 

make install clean

 

or as you prefer.

 

pkg install jwm

 

 

After installing the window manager, let's move on to configuring JWM desktop menus and wallpapers.

 

By default the configuration file is located at /usr/local/etc/system.jwmrc copy it to your home directory with

 

$ cp /usr/local/etc/system. jwmrc

 

Then I will edit .jwmrc in whatever editor is necessary, I will use ee.

 

ee .jwmrc

 

Part of my code looks like this:

 

<?xml version="1.0"?>

<JWM>

 

<!-- The root menu. -->

<RootMenu onroot="12">

<Program icon="/storage/home/max/Image/Icon/terminal.png" label="Terminal">sakura</Program>

<Separator/>

 

<Menu icon="/storage/home/max/Image/Icon/audio.png" label="Audio">

<Program icon="/storage/home/max/Image/Icon/audacious.png" label="Audacious">audacious</Program>

<Program icon="/storage/home/max/Image/Icon/audacity.png" label="Audacity">audacity</Program>

<Program icon="/storage/home/max/Image/Icon/deadbeef.png" label="DeaDBeeF">deadbeef</Program>

<Program icon="/storage/home/max/Image/Icon/mixer.png" label="DSBMixer">dsbmixer</Program>

<Program icon="/storage/home/max/Image/Icon/mixer.png" label="PulseAudio">pavucontrol</Program>

</Menu>

 

 

From the code you can see that we have prescribed the path of the icon which will be displayed in the menu and the command to launch the application. That's how you can adjust the JWM menu. To set the desktop wallpaper we would look for the <!-- Virtual Desktops --> section in the same file and add the path to your wallpaper in it like in my example.

 

 

    <!-- Virtual Desktops -->
    <!-- Desktop tags can be contained within Desktops for desktop names. -->
    <Desktops width="4" height="1">
    <Background type="image">/storage/home/max/Image/Succubus/Sukkubus.png</Background>
        <!-- Default background. Note that a Background tag can be
              contained within a Desktop tag to give a specific background
              for that desktop.
         -->
       <!-- <Background type="solid">#111111</Background> -->
    </Desktops>

 

 

 

Change hotkeys and colors if needed.

 

To start JWM just edit .xinitrc like this:

 

exec jwm

 

BSD is so easy and fun.

Share This Article

Previous Article

April 13, 2022 • 6:35AM

Next Article

May 11, 2022 • 11:30PM

From Our Blog