Revision 2 of 2026-11-25 20:31 UTC by tux, the current one. Current version - History

Window managers and sessions SliTaz 5.1

The window manager draws the borders of the windows and moves them. The SliTaz 5.1 desktop, LXTaz, uses Openbox, with LXPanel and the LXTaz tools around it. Other window managers and desktops are packages: a lighter one gives an old machine more room, a tiling one suits a keyboard user. This page tells which ones are packaged, how to pick one at login, and how to set up Openbox alone and JWM. The Handbook explains the login screen in Login and session.

Choose a session at login

The login screen, lxtaz-dm, lists the sessions in its bottom bar: click the list, pick one, then log in. It remembers your choice for the next time. A desktop image offers:

Each session is a .desktop file in /usr/share/xsessions; installing a window manager adds its own, so it shows up in the list the next time the login screen comes back. Install one as root, for example:

# spk-add jwm

What is packaged

Window managers with a session at the login screen, on both i486 and x86_64:

On i486 only: i3 and awesome, two tiling window managers.

These have no session file: add one yourself, see below.

Full desktops are also in the repository, in old versions: xfce4 (Xfce 4.12), lxqt (0.8) and mate (1.9). They were not tested on 5.1 and pull in many packages; on x86_64 the MATE session manager is missing.

Add a session for another window manager

Create the file as root, here /usr/share/xsessions/dwm.desktop:

[Desktop Entry]
Type=XSession
Name=dwm
Exec=dwm

Exec is the command that starts the window manager. Log out: the new session is in the list.

What happens when you log in

lxtaz-dm runs your ~/.xinitrc with the command of the session; that script sets the keyboard layout and starts the session with a D-Bus session bus. Without ~/.xinitrc, it runs the command directly. The output of the session goes to ~/.cache/lxtaz-dm-session.log: look there when a session closes at once.

WINDOW_MANAGER in ~/.config/slitaz/applications.conf is only used when you start X by hand with startx, see Xorg; at the login screen, the session you pick wins.

Openbox alone

OpenBox Session is the lightest session of a desktop image: no panel, no desktop icons. Right-click the desktop for the menu; Alt+Tab goes through the windows. The menu comes from /etc/xdg/openbox/menu.xml; to change it, copy it to your home and edit the copy:

$ mkdir -p ~/.config/openbox
$ cp /etc/xdg/openbox/menu.xml ~/.config/openbox/
$ openbox --reconfigure

The keyboard shortcuts are in ~/.config/openbox/rc.xml, see Keys and mouse.

At login, the session runs /etc/xdg/openbox/autostart, which draws the wallpaper of the LXTaz desktop with hsetroot, then your own ~/.config/openbox/autostart if you have one. Put there the programs to start, one per line, each ending with &:

xbindkeys &

Make an Openbox theme

The window borders come from a theme in /usr/share/themes/<name>/openbox-3/. To make your own, copy one to your home under a new name and edit its themerc file:

$ mkdir -p ~/.themes
$ cp -r /usr/share/themes/SliTaz-Dark ~/.themes/MyTheme
$ editor ~/.themes/MyTheme/openbox-3/themerc

Then pick it in obconf (Openbox Configuration Manager). Each line of themerc is a name: value pair; the colors are #rrggbb. The Dark mode switch of the LXTaz quick settings sets the SliTaz-Dark or SliTaz-Light theme again: in the LXTaz session, choose your theme after using it.

JWM

JWM holds the window manager, a panel with a menu button, a pager and a task list and a clock, in one program of 200 kilobytes. Its SliTaz setup has a dark theme, a menu with a terminal, the web browser, Settings and Packages, and Super-key shortcuts: Super+Space opens the menu, Super+Return a terminal, Super+Q closes the window.

Configure it

JWM reads ~/.config/jwm/jwmrc or ~/.jwmrc, and else the system file /etc/xdg/jwm/system.jwmrc. Start from the system file:

$ cp /etc/xdg/jwm/system.jwmrc ~/.jwmrc
$ editor ~/.jwmrc

The file is XML, with comments between <!-- and -->. Check it, then restart JWM to see your changes:

$ jwm -p
$ jwm -restart

jwm -p prints the errors and does nothing else; an empty answer means the file is right. A menu entry is one line inside <RootMenu>:

<Program label="File manager">pcmanfm</Program>

JWM style

The look is set by a few tags:

Colors are names or #rrggbb; two colors separated by a colon, like #3a4956:#1e2a33, make a gradient. Fonts are set by the Font tag of each style. The JWM configuration manual lists every tag.

Tips

Troubleshooting

The new session is not in the list: check that its .desktop file is in /usr/share/xsessions and ends with .desktop. A session whose file has a TryExec line is hidden when that program is not installed.

The session closes at once, back to the login screen: read ~/.cache/lxtaz-dm-session.log. Often the command of Exec is not installed, or is misspelled.

JWM ignores your changes: run jwm -p to find the error, and check that you edit ~/.jwmrc and that ~/.config/jwm/jwmrc does not exist: it would be read first.