Tisse Manual

Light Wayland compositor for SliTaz

Tisse is a floating Wayland compositor and the desktop session built around it. It is meant to replace Openbox/LXDE as the default SliTaz desktop in a coming release. The name is French for weaves; it pairs with soie (silk), the SliTaz web rendering engine. Version 0.0.9, in development.

Rendering is software only, through the Pixman renderer of wlroots: no Mesa and no 3D driver are needed, so Tisse runs on old machines as well as new ones. Only the changed parts of the screen are repainted. Native Wayland applications run directly, X11 applications through XWayland. Window title bars, the dock and the settings window are drawn with fcft and pixman, the font stack of foot, yambar and fuzzel.

Tisse is a suite of small programs plus a default desktop setup in /etc/tisse. This manual is for users and administrators.

Install

Two packages come from the same sources:

PackageContent
tisseThe programs (tisse, tisse-session, tisse-config, tisse-dock, tisse-welcome), the session entry for display managers and the examples /etc/tisse/config.example and /etc/tisse/autostart.example.
tisse-desktopThe default SliTaz desktop: the files of /etc/tisse (autostart, panel, dock, media keys, launcher theme) and the wallpaper. It depends on the companion tools: wbg, yambar, fuzzel, foot, fnott, wob...
# spk-add tisse tisse-desktop

To run Tisse on the console (DRM/KMS), your user needs read and write access to /dev/dri/* and /dev/input/*, usually through the video and input groups, or through seatd.

Programs

ProgramRole
tisse-sessionStarts a full session from a TTY or a display manager: environment, D-Bus, keyboard layout, autostart, then the compositor.
tisseThe compositor itself.
tisse-configThe settings window; edits the configuration file and applies each change at once.
tisse-dockThe dock at the bottom of the screen: launchers and open windows.
tisse-welcomeThe welcome window for new users: first steps, shortcuts, desktop, settings.

Quick start

Log in on a text console, then:

$ tisse-session

Display managers (cocon-dm, greetd...) list the session through /usr/share/wayland-sessions/tisse.desktop, which runs the same command. Once in, Mod is the Super key (the one with the Windows logo):

Ctrl+Spaceopen the launcher (fuzzel)
Mod+Returnopen a terminal
Mod+Qclose the focused window
Mod+Shift+Equit Tisse

tisse -h prints the full list of keyboard shortcuts.

tisse-session

$ tisse-session [-d] [-s command] [-h]
-d, --debugStart tisse with debug logging and write its output to ~/.local/share/tisse/logs/tisse-YYYYmmdd-HHMMSS.log; tisse-latest.log in the same directory points to the last one.
-s commandRun this command instead of the autostart. -s "" starts a bare compositor with no autostart.
-h, --helpPrint a short usage and exit.

tisse-session is meant for a TTY: it refuses to start when WAYLAND_DISPLAY is set or when an X server is really running (a live socket in /tmp/.X11-unix; a stale DISPLAY, as set by /etc/profile, is dropped). For a test inside another session, see nested mode. Before starting tisse, it:

  1. wraps the session in dbus-run-session when it is installed and no session bus is set, so notifications (fnott) and other D-Bus clients work;
  2. chooses the autostart: the -s command, else ~/.config/tisse/autostart, else /etc/tisse/autostart, else a built-in fallback that starts a wallpaper (wbg with the wallpaper key, else swaybg with a plain colour, else wbg with the packaged image) and yambar if they are installed. The file is run with sh once the compositor is up;
  3. sets the keyboard layout from the console keymap (see below);
  4. sets XDG_RUNTIME_DIR to /run/user/<uid> when unset, or to /tmp/tisse-runtime-<uid> (mode 700) when that directory does not exist;
  5. exports XDG_CURRENT_DESKTOP=tisse, XDG_SESSION_DESKTOP=tisse, XDG_SESSION_TYPE=wayland, XCURSOR_SIZE=24, XCURSOR_THEME=default and puts /etc/tisse/xdg first in XDG_CONFIG_DIRS;
  6. starts tisse. If it fails within 5 seconds without being asked to quit, it starts it again once with WLR_RENDERER=pixman. A renderer set by you in WLR_RENDERER is always kept.

Keyboard layout. When XKB_DEFAULT_LAYOUT is not already exported, tisse-session reads the console keymap from /etc/keymap.conf (set at boot with kmap= or with tazkeymap) and exports the matching XKB layout and variant. An unknown keymap gives us. The xkb_layout key of the configuration file still wins over it.

KeymapXKB layout (variant)
be-*be
br-abnt2br
cfca (fr)
croat, hrhr
cz-*cz
de_CH-*, sg-*ch
de-*de
dk-*dk
dvorak*us (dvorak)
es, fi, hu, it, rues, fi, hu, it, ru
fr_CH-*ch (fr)
fr-*fr
gr*gr
is-*is
jp106jp
nl*nl
no-*no
pl*pl
pt-*pt
se-*se
slovenesi
trq, tr_q-*tr
ukgb
us-acentosus (intl)

On the console (DRM mode) there is no fallback if Tisse crashes: switch to another console with Ctrl+Alt+F<n>.

tisse

$ tisse [-d] [-s command] [-h] [-v]
-dDebug logging (the default level is info).
-s commandRun command once through /bin/sh -c, after the display is live and WAYLAND_DISPLAY is exported: the command can open windows at once.
-hPrint the usage, the keyboard shortcuts and the configuration files, then exit.
-vPrint the version and exit.

An unknown option prints the usage and exits with status 1. Most users start Tisse through tisse-session; run directly, tisse starts no panel, wallpaper nor dock. At startup it prints the socket it created, e.g. WAYLAND_DISPLAY=wayland-1, ready to paste in another terminal. SIGINT and SIGTERM quit cleanly, SIGHUP reloads the configuration file.

The backend is chosen by wlroots: DRM/KMS on a bare console, a window inside an existing Wayland or X11 session (nested mode). WLR_BACKENDS forces it:

$ tisse -s foot                                   # start with a terminal
$ WLR_BACKENDS=wayland tisse -d -s foot           # nested, debug log
$ XKB_DEFAULT_LAYOUT=ch XKB_DEFAULT_VARIANT=fr tisse

Keyboard and mouse

Mod is the Super (Logo, Windows) key. Shortcuts need their exact modifiers, but CapsLock and NumLock are ignored. They are built into the program: they cannot be changed in the configuration file. While a launcher or another surface with exclusive keyboard focus is open, every key goes to it and the shortcuts are off.

ShortcutAction
Mod+ReturnOpen a terminal (the terminal setting: foot, else havoc)
Ctrl+Space, Mod+DOpen the launcher (the launcher setting: fuzzel)
Mod+QAsk the focused window to close; the application may ask first, e.g. for unsaved work
Mod+HMinimize the focused window
Mod+MMaximize or restore the focused window
F11, Mod+FToggle fullscreen (F11 is taken by Tisse, applications do not see it)
Mod+J / Mod+KFocus the next / previous window of the workspace; brings back a minimized window
Mod+1 ... Mod+4Go to workspace 1 to 4
Mod+Shift+1 ... 4Send the focused window to workspace 1 to 4
Mod+Ctrl+Right / LeftNext / previous workspace (wraps around)
Mod+wheel down / upNext / previous workspace
Volume keysVolume up, down, mute (/etc/tisse/media.sh)
Brightness keysBrightness up, down (/etc/tisse/media.sh)
Ctrl+Alt+F1 ... F12Switch virtual console (DRM mode only)
Mod+Shift+EQuit Tisse

Mod+Shift+1 to 4 match the symbols !, @, # and $, which Shift gives with the digits on a US layout. On a layout where Shift and a digit give another symbol, these four shortcuts do not fire.

MouseAction
Left clickFocus and raise the window
Mod+left dragMove the window, grabbed anywhere
Mod+right dragResize the window from its bottom-right corner
Drag a title barMove the window; a maximized window gets back its size once moved a few pixels
Double-click a title barMaximize or restore
Title bar buttonsMinimize, maximize/restore, close (they act on release, over the button)

Windows and workspaces

The configuration file

Tisse reads ~/.config/tisse/config ($XDG_CONFIG_HOME/tisse/config when that variable is set). When the user file does not exist, it reads /etc/tisse/config, the system-wide default. The two files are not merged: a user file replaces the system one. Keys missing from the file keep their built-in default. The easiest way to edit the file is tisse-config; a commented example is in /etc/tisse/config.example:

$ mkdir -p ~/.config/tisse
$ cp /etc/tisse/config.example ~/.config/tisse/config

Format: one key = value per line, # starts a comment line. Colours are #RRGGBB or #RRGGBBAA; booleans are true, yes, 1 or false, no, 0. An unknown key or a bad value is reported in the log and skipped.

KeyDefaultMeaning
terminalfoot, else havocCommand of Mod+Return, run with /bin/sh -c. Without foot, havoc uses ~/.config/havoc.cfg when present, else -c /etc/tisse/havoc-config.cfg.
launcherfuzzelCommand of Ctrl+Space and Mod+D, run with /bin/sh -c.
xkb_layout(empty)Keyboard layout, e.g. ch. Empty: XKB_DEFAULT_LAYOUT from the environment, else US.
xkb_variant(empty)Layout variant, e.g. fr.
xkb_options(empty)XKB options.
wallpaper/usr/share/backgrounds/tisse.pngImage given to wbg by the autostart; applies at the next login, not on reload. The autostart takes it from the user file, then from /etc/tisse/config.
bg_color#0d0d12Colour painted under the wallpaper, seen when there is none.
border_width2Window border in pixels.
border_focus#d45500Border and title bar of the focused window.
border_unfocus#26262bBorder and title bar of the other windows.
titlebartrueDraw title bars.
titlebar_alwaystrueAlso on windows that draw their own decorations.
titlebar_styleborderborder: bar in the border colour; dark: dark bar in a frame of the border colour.
title_fontsans-serif:size=10Title font (fontconfig pattern); the bar height follows it.
repeat_rate25Key repeat, keys per second.
repeat_delay600Delay before the first repeat, in ms.
tap_to_clicktrueTouchpad: a tap clicks. Mice ignore it.
natural_scrollfalseTouchpad: reversed scrolling.
cascade_step32Offset between new windows, in pixels.
focus_on_maptrueGive the focus to new windows.
min_width, min_height50, 30Smallest size a window can be resized to with the mouse.

After editing the file by hand, reload it without leaving the session:

$ pkill -HUP -x tisse

The keyboard, touchpad, colours, borders and title bars change at once; the terminal, launcher, cascade, focus and minimum size are used from the next time they are needed; the wallpaper at the next login.

# ~/.config/tisse/config
xkb_layout     = ch
xkb_variant    = fr
titlebar_style = dark
border_focus   = #3584e4
natural_scroll = true

tisse-config

$ tisse-config [-d dir]

The settings window, also in the dock and in the launcher as Tisse settings (shown only in a Tisse session). It edits ~/.config/tisse/config (or $XDG_CONFIG_HOME/tisse/config), creating it if needed. There is no Apply button: every change is written at once and a running tisse is told to reload. The footer shows the result (Saved and applied, Saved, applies at next login for the wallpaper, Saved, tisse is not running), else the memory used by tisse. The file is edited in place: comments and keys it does not manage are kept.

The values shown are those of /etc/tisse/config with the user file on top, else the built-in default. Clearing a text field removes the key from the user file.

TabSettings
AppearanceBackground colour, active window, other windows (preset swatches or a #RRGGBB field), border width (0 to 10), wallpaper (next login)
Title barsTitle bars on/off, on every window, style (Orange = border, Dark = dark), font
KeyboardLayout (Default, Swiss, French, Belgian, Canadian, English US and UK, German, Italian, Spanish, Portuguese), variant, options, repeat delay (150 to 1000 ms), repeat rate (5 to 60 per second)
TouchpadTap to click, natural scrolling
WindowsFocus new windows, cascade step (0 to 96), minimum width and height (10 to 400)
ApplicationsTerminal and launcher commands
KeyAction
Up / Down, TabPrevious / next tab
EscapeClose the window (in a text field: cancel the edit)
Return, TabIn a text field: save it; a click elsewhere saves too
Ctrl+UIn a text field: clear it
Mouse wheelOver a number or a choice: step it

The window is in English, or in French with a French locale (LC_ALL, LC_MESSAGES or LANG). Translations are @tr english = translation lines in /usr/share/tisse/config/<lang>.txt; -d reads them from another directory.

tisse-dock

The dock sits at the bottom of the screen, started by the desktop autostart. It shows one icon per launcher of its list, plus one per running application not in the list. A dot under an icon marks a running application, orange when one of its windows has the focus. tisse-dock takes no option.

ClickAction
Left, no window openStart the application
Left, its window has the focusMinimize it
Left, otherwiseBring back its window (the last one minimized, else the last one used), switching workspace if needed
MiddleAlways start a new instance

The dock shows while no window has the focus (empty workspace, all windows minimized). When a window is active, it shrinks to a 1 pixel strip at the bottom edge: touch that edge with the pointer to bring it back; it hides again shortly after the pointer leaves.

Configuration: ~/.config/tisse/dock (or $XDG_CONFIG_HOME/tisse/dock), else /etc/tisse/dock. One launcher per line: the desktop id, the name of a .desktop file of ~/.local/share/applications or /usr/share/applications without its extension. A launcher whose file is not installed is skipped. # starts a comment. Two options:

# ~/.config/tisse/dock
icon_size  = 48
icon_theme = SliTaz-Dark-Icons

foot
tisse-config
firefox-official
cocon-files
trame-gui

Restart tisse-dock to apply a change. icon_size is at least 16. Icons are PNG only, searched in the icon theme, the themes it inherits from, hicolor, then /usr/share/pixmaps; an application without one gets a grey square.

tisse-welcome

$ tisse-welcome [--autostart] [-d dir]

A window for new users, with four pages: first steps, keyboard shortcuts (built from tisse -h), the desktop and the settings. The desktop autostart opens it at each login with --autostart until Show at startup is unchecked, which creates ~/.config/tisse/welcome-off; delete that file to see it again at login. It is also in the launcher as Welcome to Tisse.

Keys: Up / Down or Tab change page, Page Up / Page Down and the wheel scroll, Escape closes.

The text is in /usr/share/tisse/welcome/<lang>.txt (English and French), chosen from LC_ALL, LC_MESSAGES or LANG, English by default; -d reads it from another directory. It can be fixed or translated without rebuilding. One item per line:

[Page]Starts a page; its name is the tab
= HeadingA heading
key | descriptionA two-column row
@keysThe shortcuts of tisse -h (media keys left out)
@button Label = commandA button that runs the command
@title, @startup, @closeWindow title, check box and button labels
@tr english = textTranslates a shortcut description or a key name
blank line, # commentParagraph break, ignored line
other linesText, joined and wrapped

The SliTaz desktop

The tisse-desktop package installs the default session in /etc/tisse:

FileRole
autostartRun at session start: wallpaper (wbg -s, else swaybg), yambar, tisse-dock, tisse-welcome, fnott (notifications) and wob (volume and brightness bar), each only when installed.
yambar-config.ymlThe panel, at the top: network, CPU and memory on the left, workspaces 1 to 4 in the middle (the current one in orange), date and time on the right. A battery module is ready, commented out.
workspace.shPanel script that shows the current workspace; it waits on the FIFO Tisse writes to, so it costs no CPU at rest.
media.shRun by the volume and brightness keys.
dockThe default dock launchers.
xdg/fuzzel/fuzzel.iniThe launcher theme. /etc/tisse/xdg comes first in XDG_CONFIG_DIRS, so it wins over /etc/xdg, and your own ~/.config/fuzzel/fuzzel.ini still wins over it.

Your own autostart: copy the system one, or the commented example, then edit it. It replaces /etc/tisse/autostart entirely. Start long-running programs with &.

$ cp /etc/tisse/autostart ~/.config/tisse/autostart

The system autostart always gives yambar /etc/tisse/yambar-config.yml; the example (/etc/tisse/autostart.example) uses ~/.config/yambar/config.yml when it exists.

Media keys: media.sh takes vol-up, vol-down, vol-mute, bright-up or bright-down, by steps of 5%. Sound goes through the first tool found: wpctl (PipeWire), pactl (PulseAudio), amixer (ALSA). Brightness uses brightnessctl, else writes /sys/class/backlight, which needs write access. The new level goes to wob through $XDG_RUNTIME_DIR/tisse/wob.fifo (wob reads /etc/tisse/wob.ini when present). Without these tools the keys do nothing.

Environment

WAYLAND_DISPLAYSet by tisse to its socket and passed to every program it starts.
DISPLAYSet by tisse for X11 programs when XWayland is built in; the X server starts only when the first X client connects.
XKB_DEFAULT_LAYOUT, _VARIANT, _RULES, _MODEL, _OPTIONSKeyboard layout when the xkb_* keys are empty; set by tisse-session from /etc/keymap.conf when unset.
WLR_BACKENDSwayland or x11 to run nested; unset for automatic choice.
WLR_RENDERERpixman forces the software renderer. Without it, tisse falls back to Pixman when no other renderer starts.
XDG_RUNTIME_DIRRequired by Wayland; holds the socket and the tisse/ runtime files.
XDG_CONFIG_HOMEReplaces ~/.config for the Tisse files.
LC_ALL, LC_MESSAGES, LANGLanguage of tisse-config and tisse-welcome.

Files

/usr/bin/tisse, tisse-session, tisse-config, tisse-dock, tisse-welcome
/usr/share/wayland-sessions/tisse.desktop   Session for display managers
/usr/share/backgrounds/tisse.png            Default wallpaper
/usr/share/tisse/welcome/<lang>.txt        Welcome window text
/usr/share/tisse/config/<lang>.txt         tisse-config translations
/etc/tisse/config                           System settings (if created)
/etc/tisse/config.example                   Commented settings example
/etc/tisse/autostart, autostart.example     Session startup script
/etc/tisse/dock                             Default dock launchers
/etc/tisse/yambar-config.yml, workspace.sh  Panel
/etc/tisse/media.sh                         Volume and brightness keys
/etc/tisse/xdg/                             Companion tool themes
~/.config/tisse/config                      User settings
~/.config/tisse/autostart                   User startup script
~/.config/tisse/dock                        User dock launchers
~/.config/tisse/welcome-off                 Welcome window turned off
~/.local/share/tisse/logs/                  tisse-session -d logs
$XDG_RUNTIME_DIR/tisse/workspace            Current workspace (1-4)
$XDG_RUNTIME_DIR/tisse/workspace.fifo       Workspace changes, for the panel
$XDG_RUNTIME_DIR/tisse/wob.fifo             Levels for wob

Supported tools

Tisse speaks the protocols most light Wayland tools need:

Not yet: session lock (swaylock), output management and scaling (wlr-randr, kanshi), viewporter, presentation time and idle inhibit (video players), primary selection (middle-click paste), xdg-activation, cursor shape, tiling layouts.

Troubleshooting

Tisse crashed on the consoleSwitch to another console with Ctrl+Alt+F<n>, then run tisse-session -d and read ~/.local/share/tisse/logs/tisse-latest.log.
"a graphical session is already active"tisse-session runs from a console only; inside another session use WLR_BACKENDS=wayland tisse.
Nothing happens on Ctrl+Spacefuzzel is not installed (tisse prints no launcher found), or set launcher to another command.
No notificationsfnott needs a D-Bus session bus: install dbus so tisse-session can start one.
Wrong keyboard layoutSet xkb_layout and xkb_variant in tisse-config, or check /etc/keymap.conf.
Mod+Shift+digit does nothingSee the note in Keyboard and mouse: these shortcuts match US shifted symbols.
Settings in /etc/tisse/config ignoredA user file ~/.config/tisse/config exists: tisse then reads only that one.
Brightness keys do nothingInstall brightnessctl, or give your user write access to /sys/class/backlight/*/brightness.
No battery in the panelUncomment the battery module in a copy of the panel config and set its name (see /sys/class/power_supply).

About

Tisse is written by Christophe Lincoln and the SliTaz contributors. It is free software under the MIT license, like wlroots. Sources: hg.slitaz.org/tisse. Report problems on forum.slitaz.org.