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
- Programs
- Quick start
- tisse-session
- tisse
- Keyboard and mouse
- Windows and workspaces
- The configuration file
- tisse-config
- tisse-dock
- tisse-welcome
- The SliTaz desktop
- Environment
- Files
- Supported tools
- Troubleshooting
- About
Install
Two packages come from the same sources:
| Package | Content |
|---|---|
| tisse | The 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-desktop | The 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
| Program | Role |
|---|---|
| tisse-session | Starts a full session from a TTY or a display manager: environment, D-Bus, keyboard layout, autostart, then the compositor. |
| tisse | The compositor itself. |
| tisse-config | The settings window; edits the configuration file and applies each change at once. |
| tisse-dock | The dock at the bottom of the screen: launchers and open windows. |
| tisse-welcome | The 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+Space | open the launcher (fuzzel) |
| Mod+Return | open a terminal |
| Mod+Q | close the focused window |
| Mod+Shift+E | quit Tisse |
tisse -h prints the full list of keyboard shortcuts.
tisse-session
$ tisse-session [-d] [-s command] [-h]
| -d, --debug | Start 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 command | Run this command instead of the autostart.
-s "" starts a bare compositor with no
autostart. |
| -h, --help | Print 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:
- wraps the session in
dbus-run-sessionwhen it is installed and no session bus is set, so notifications (fnott) and other D-Bus clients work; - chooses the autostart: the
-scommand, else~/.config/tisse/autostart, else/etc/tisse/autostart, else a built-in fallback that starts a wallpaper (wbg with thewallpaperkey, else swaybg with a plain colour, else wbg with the packaged image) and yambar if they are installed. The file is run withshonce the compositor is up; - sets the keyboard layout from the console keymap (see below);
- sets
XDG_RUNTIME_DIRto/run/user/<uid>when unset, or to/tmp/tisse-runtime-<uid>(mode 700) when that directory does not exist; - exports
XDG_CURRENT_DESKTOP=tisse,XDG_SESSION_DESKTOP=tisse,XDG_SESSION_TYPE=wayland,XCURSOR_SIZE=24,XCURSOR_THEME=defaultand puts/etc/tisse/xdgfirst inXDG_CONFIG_DIRS; - 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 inWLR_RENDERERis 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.
| Keymap | XKB layout (variant) |
|---|---|
| be-* | be |
| br-abnt2 | br |
| cf | ca (fr) |
| croat, hr | hr |
| cz-* | cz |
| de_CH-*, sg-* | ch |
| de-* | de |
| dk-* | dk |
| dvorak* | us (dvorak) |
| es, fi, hu, it, ru | es, fi, hu, it, ru |
| fr_CH-* | ch (fr) |
| fr-* | fr |
| gr* | gr |
| is-* | is |
| jp106 | jp |
| nl* | nl |
| no-* | no |
| pl* | pl |
| pt-* | pt |
| se-* | se |
| slovene | si |
| trq, tr_q-* | tr |
| uk | gb |
| us-acentos | us (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]
| -d | Debug logging (the default level is info). |
| -s command | Run command once through
/bin/sh -c, after the display is live and
WAYLAND_DISPLAY is exported: the command can open
windows at once. |
| -h | Print the usage, the keyboard shortcuts and the configuration files, then exit. |
| -v | Print 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.
| Shortcut | Action |
|---|---|
| Mod+Return | Open a terminal (the terminal
setting: foot, else havoc) |
| Ctrl+Space, Mod+D | Open the launcher (the
launcher setting: fuzzel) |
| Mod+Q | Ask the focused window to close; the application may ask first, e.g. for unsaved work |
| Mod+H | Minimize the focused window |
| Mod+M | Maximize or restore the focused window |
| F11, Mod+F | Toggle fullscreen (F11 is taken by Tisse, applications do not see it) |
| Mod+J / Mod+K | Focus the next / previous window of the workspace; brings back a minimized window |
| Mod+1 ... Mod+4 | Go to workspace 1 to 4 |
| Mod+Shift+1 ... 4 | Send the focused window to workspace 1 to 4 |
| Mod+Ctrl+Right / Left | Next / previous workspace (wraps around) |
| Mod+wheel down / up | Next / previous workspace |
| Volume keys | Volume up, down, mute
(/etc/tisse/media.sh) |
| Brightness keys | Brightness up, down
(/etc/tisse/media.sh) |
| Ctrl+Alt+F1 ... F12 | Switch virtual console (DRM mode only) |
| Mod+Shift+E | Quit 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.
| Mouse | Action |
|---|---|
| Left click | Focus and raise the window |
| Mod+left drag | Move the window, grabbed anywhere |
| Mod+right drag | Resize the window from its bottom-right corner |
| Drag a title bar | Move the window; a maximized window gets back its size once moved a few pixels |
| Double-click a title bar | Maximize or restore |
| Title bar buttons | Minimize, maximize/restore, close (they act on release, over the button) |
Windows and workspaces
- Placement: new windows cascade from the top-left
corner of the screen under the pointer, below the panel, shifted
by
cascade_steppixels per window; after ten windows the cascade starts again. A new window takes the focus unlessfocus_on_map = false. - Title bars: a window that lets Tisse decorate it
gets a bar with its title and the minimize, maximize and close
buttons, and a 2 px border, SliTaz orange when focused, dim grey
otherwise. With
titlebar_always(the default), Wayland applications that draw their own title bar (GTK3 header bars) get the Tisse bar above it, their own buttons staying. X11 windows get the bar unless they ask for no decorations. - Maximize fills the free area of the screen, the panel excluded. Fullscreen covers the whole screen, panel included; one window at a time is fullscreen. Minimize hides the window; it comes back from the dock or with Mod+J / Mod+K.
- Workspaces: four fixed workspaces. The panel and
the wallpaper are shared by all of them. Tisse writes the current
workspace number (1 to 4) to
$XDG_RUNTIME_DIR/tisse/workspaceand toworkspace.fifonext to it, which the panel reads. - Screens: several outputs are placed side by side and can be plugged in and out; windows left on an unplugged screen come back to the first one. Each output uses its preferred mode.
- Input: keyboards and pointers, touchpads included; touch screens and tablets are not handled yet.
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.
| Key | Default | Meaning |
|---|---|---|
| terminal | foot, else havoc | Command of
Mod+Return, run with /bin/sh -c. Without foot, havoc
uses ~/.config/havoc.cfg when present, else
-c /etc/tisse/havoc-config.cfg. |
| launcher | fuzzel | Command 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.png | Image
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 | #0d0d12 | Colour painted under the wallpaper, seen when there is none. |
| border_width | 2 | Window border in pixels. |
| border_focus | #d45500 | Border and title bar of the focused window. |
| border_unfocus | #26262b | Border and title bar of the other windows. |
| titlebar | true | Draw title bars. |
| titlebar_always | true | Also on windows that draw their own decorations. |
| titlebar_style | border | border: bar
in the border colour; dark: dark bar in a frame of
the border colour. |
| title_font | sans-serif:size=10 | Title font (fontconfig pattern); the bar height follows it. |
| repeat_rate | 25 | Key repeat, keys per second. |
| repeat_delay | 600 | Delay before the first repeat, in ms. |
| tap_to_click | true | Touchpad: a tap clicks. Mice ignore it. |
| natural_scroll | false | Touchpad: reversed scrolling. |
| cascade_step | 32 | Offset between new windows, in pixels. |
| focus_on_map | true | Give the focus to new windows. |
| min_width, min_height | 50, 30 | Smallest 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.
| Tab | Settings |
|---|---|
| Appearance | Background colour, active window, other
windows (preset swatches or a #RRGGBB field), border
width (0 to 10), wallpaper (next login) |
| Title bars | Title bars on/off, on every window, style
(Orange = border, Dark = dark),
font |
| Keyboard | Layout (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) |
| Touchpad | Tap to click, natural scrolling |
| Windows | Focus new windows, cascade step (0 to 96), minimum width and height (10 to 400) |
| Applications | Terminal and launcher commands |
| Key | Action |
|---|---|
| Up / Down, Tab | Previous / next tab |
| Escape | Close the window (in a text field: cancel the edit) |
| Return, Tab | In a text field: save it; a click elsewhere saves too |
| Ctrl+U | In a text field: clear it |
| Mouse wheel | Over 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.
| Click | Action |
|---|---|
| Left, no window open | Start the application |
| Left, its window has the focus | Minimize it |
| Left, otherwise | Bring back its window (the last one minimized, else the last one used), switching workspace if needed |
| Middle | Always 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 |
= Heading | A heading |
key | description | A two-column row |
@keys | The shortcuts of
tisse -h (media keys left out) |
@button Label = command | A button that runs the command |
@title, @startup,
@close | Window title, check box and button labels |
@tr english = text | Translates a shortcut description or a key name |
blank line, # comment | Paragraph break, ignored line |
| other lines | Text, joined and wrapped |
The SliTaz desktop
The tisse-desktop package installs the default session in
/etc/tisse:
| File | Role |
|---|---|
| autostart | Run 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.yml | The 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.sh | Panel script that shows the current workspace; it waits on the FIFO Tisse writes to, so it costs no CPU at rest. |
| media.sh | Run by the volume and brightness keys. |
| dock | The default dock launchers. |
| xdg/fuzzel/fuzzel.ini | The 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_DISPLAY | Set by tisse to its socket and passed to every program it starts. |
| DISPLAY | Set 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, _OPTIONS | Keyboard layout when the
xkb_* keys are empty; set by tisse-session from
/etc/keymap.conf when unset. |
| WLR_BACKENDS | wayland or x11
to run nested; unset for automatic choice. |
| WLR_RENDERER | pixman forces the software
renderer. Without it, tisse falls back to Pixman when no other
renderer starts. |
| XDG_RUNTIME_DIR | Required by Wayland; holds the socket
and the tisse/ runtime files. |
| XDG_CONFIG_HOME | Replaces ~/.config for
the Tisse files. |
| LC_ALL, LC_MESSAGES, LANG | Language 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:
- xdg-shell windows and popups; X11 windows through XWayland;
- layer-shell: wallpapers (wbg, swaybg), panels (yambar), launchers (fuzzel), notifications (fnott), wob;
- xdg-decoration and the KDE server decoration protocol (GTK3);
- foreign toplevel management (docks and taskbars);
- idle notify (swayidle), screencopy and xdg-output (grim);
- virtual pointer and keyboard (scripted input).
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 console | Switch 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+Space | fuzzel is not installed
(tisse prints no launcher found), or set
launcher to another command. |
| No notifications | fnott needs a D-Bus session bus: install dbus so tisse-session can start one. |
| Wrong keyboard layout | Set xkb_layout and
xkb_variant in tisse-config, or check
/etc/keymap.conf. |
| Mod+Shift+digit does nothing | See the note in Keyboard and mouse: these shortcuts match US shifted symbols. |
Settings in /etc/tisse/config
ignored | A user file ~/.config/tisse/config
exists: tisse then reads only that one. |
| Brightness keys do nothing | Install brightnessctl, or
give your user write access to
/sys/class/backlight/*/brightness. |
| No battery in the panel | Uncomment 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.