HOWTO: Add JWM (or any window manager) to Coal

Forum rules
Share your brain ;)
pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

HOWTO: Add JWM (or any window manager) to Coal

Unread post by pidsley » Fri Aug 02, 2013 8:18 am

Coal uses "startx" and .xinitrc to start LXDE. This makes it very easy to add a different window manager. After you install JWM (or any other window manager) Just comment out the "exec startlxde" line in ~/.xinitrc, and add your new window manager:

Code: Select all

#!/bin/sh
xrdb -merge ~/.Xresources
#exec startlxde
exec jwm
Then if you want to change back to LXDE at any time, comment out the jwm line and remove the comment from the LXDE line. You can add any number of window managers to .xinitrc this way. You can also use the window-manager chooser script I posted here.

I've attached a .jwmrc file for coal -- download this file, rename it to .jwmrc, and copy it to your home directory. Have fun. If you decide to edit this file, please make a backup copy first! You might want to copy the original file to /etc/skel, so you always have a copy in case something breaks. After you edit .jwmrc, you can run "jwm -p" in a terminal to check the syntax before you restart JWM.

Image
Attachments
.jwmrc.txt
(12.12 KiB) Downloaded 147 times

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: HOWTO: Add JWM (or any window manager) to Coal

Unread post by machinebacon » Fri Aug 02, 2013 8:40 am

Thank you Pidsley!
..gnutella..

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: HOWTO: Add JWM (or any window manager) to Coal

Unread post by machinebacon » Fri Aug 02, 2013 9:19 am

And if you want something like Gangbang's session chooser, here's an example using LXDE, Openbox, and JWM. Add your stuff as you wish:

Code: Select all

#!/usr/bin/env bash
INPUT=/tmp/menu.sh.$$
function mainmenu(){
dialog --backtitle "LinuxBBQ - Coal" --nocancel --title "Session Chooser" --menu "Please choose your WM" 20 60 15 \
A LXDE  \
B Openbox  \
C JWM  \
D Shell 2>"${INPUT}"
menuitem=$(<"${INPUT}")
case $menuitem in
A) xinit exec startlxde ;;
B) xinit exec openbox-session ;;
C) xinit exec jwm ;;
D) exit 0;;
esac
}

[ -f $INPUT ] && rm $INPUT

mainmenu
store it in /usr/local/bin as wmchooser and make it executable (chmod +ax)
http://linuxbbq.org/bbs/viewtopic.php?f=6&t=510 follow this post but in Step 2, let it execute /usr/local/bin/wmchooser instead of startx
You can always skip to another tty in cases of bork.
..gnutella..

User avatar
bones
Clooney
Posts: 2385
Joined: Fri Jun 28, 2013 11:47 pm
Location: Cascadia

Re: HOWTO: Add JWM (or any window manager) to Coal

Unread post by bones » Fri Aug 02, 2013 1:11 pm

Supersexy, thanks!

Post Reply