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:
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.
Part of my code looks like this:
<!-- The root menu. -->
<Program icon="/storage/home/max/Image/Icon/terminal.png" label="Terminal">sakura</Program>
<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>
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">
<!-- 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> -->
Change hotkeys and colors if needed.
To start JWM just edit .xinitrc like this:
BSD is so easy and fun.