Things To Do After Installing JWM

Share your own howto's etc. Not for support questions!

Things To Do After Installing JWM

Postby Lecram » 2020-01-30 09:41

JWM is a simple lightweight window manager that gives maximum functionality while being light on the memory. This tutorial will focus on enhancing your JWM. I'm using Debian stable so all the packages are in the repo. To install without unnecessary stuff run

Code: Select all
apt-get --no-install-recommends --no-install-suggests install pkgs

01.Adding confirmation dialog boxes for shutdown and Reboot.

There is no default way to add confirm dialog boxes for shutdown and reboot as it doesn't support them. one way to do that is by using shell scripts. This is an example script I used from

Code: Select all

xmessage 'Do you want to shutdown?' \
   -buttons 'Cancel:1,Shut Down:2'

case $? in
    2) systemctl poweroff

For reboot just add systemctl reboot and an another button to the script or you can create a separate reboot script.

02.Calendar When clicking the Clock.

Install gsimplecal for the calendar application. and edit the clock tag in .jwmrc as mentioned below.

Code: Select all
<Clock format="%H:%M">exec:xclock<Button mask="123">exec:gsimplecal</Button></Clock>

03.Showing tasks for the current desktop only.

By default JWM shows your tasks in all your virtual desktops to avoid that comment out list=all option in the <TrayStyle> header of your jwmrc

04.Random wallpaper at startup

If you are using JWM most probably you might have also installed feh. At this moment it doesn't change wallpaper at constant intervals. I've come across scripts but it didn't work for me and I'm content with random wallpaper at startup.Remember we are using JWM because it is minimal and lightweight. We do not add unnecessary stuff. The command for random wallpaper is to add the --random switch when invoking during startup.

Code: Select all
<StartupCommand>feh --randomize --bg-fill ~/backgrounds/*</StartupCommand>

05.Adding policykit support

Policykit is used for authenticating the user to do administrative stuff. It adds a nice gui option as gksu and gksudo are depreceated.Install policykit-1-gnome and add the following to the startup

Code: Select all

06.Adding volume mixer to the tray

By default most of us are using pulseaudio. To control the volume install pavucontrol and pasystray. After that add the following to your startup

Code: Select all

07. Install Notification daemon

Install xfce4-notify and add it to the startup for getting some system messages.It is pretty handy tool.

Code: Select all

08. Install Idesk

Idesk places an icon in any minimal window manager. Install idesk. create a file called .ideskrc and a folder called .idesktop in your home folder.The .ideskrc file contains the global options for your icons in your desktop.Options can be found in and
in the .idesktop folder create a file say vlc.lnk and add the following contents to that file.

Code: Select all
table Icon

The idesk icons are easily movable in the desktop, once you have all the icons in your desktop and in the place of your desire, simply edit the .ideskrc file and look for the option
Code: Select all
 Locked: false
and change it to
Code: Select all
Locked: true

It will lock the icons in the grid.

09. Installing Dropbox (Optional and only for those who want dropbox)

Dropbox is a file-sharing utility. It isn't in the repos you have to download it from the website and install it manually. Then install the dropbox daemon by

Code: Select all
/usr/bin/dropbox -i

after its installed add it to the startup

Code: Select all
<StartupCommand>/usr/bin/dropbox start</StartupCommand>

10. Install video Downloaders

Most people might not need it but for those who want to download videos from the internet might need this. I've used xtreme download manager to download the videos but it hasn't released any new updates so if you are uneasy about that then there are two options 1. get-flash-videos and 2. youtube-dl
Install get-flash-videos from the repo to download videos from the internet.Another Video downloader is youtube-dl. The youtube-dl package is already in the repos but to install the latest package install the following first python-pip python3-pip python-wheel python3-wheel. then run

Code: Select all
pip3  install youtube-dl

it will install it to /usr/local/bin/ If you had installed the one from repo you have to first uninstall that before installing using through pip3.
You have to invoke the command as /usr/local/bin/youtube-dl [options] [url] One of advantages of using pip is that we can upgrade packages and track the installed packages.

11.Customizing Terminal [Optional]

Most of us like to have customized terminal. For that install a. fortune b. cowsay and some of us like to know the weather and the phase of the moon and
for that install ansiweather a command line plugin and for the phase of moon use pom from bsdgames, ansiweather uses the openweather map so make sure you have the api key from that website. In the terminal we will make the cow say the phase of moon and fortune side by side and then display the weather. Edit the .bashrc and add the following lines

Code: Select all
paste <(pom | cowsay) <(fortune -a -s | cowsay  ) | column -s $'\t' -tn
ansiweather -a true -d true -w false -p false -k  [key] -l  [location]

You might also want to read this:


P.S: I have also uploaded this article in, but i don't know when it will be up. This is the second revision of the article.Here is the link

Here are some of my screenshots
Image Image
User avatar
Posts: 122
Joined: 2009-06-03 08:54

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 7 guests