Glaze

User guide

Glaze is a Wayland desktop for Taoci GNU/Linux on x86_64 and aarch64, written in Rust with GTK4. Its layout follows the Windows 2000 desktop: a bottom panel with a start button, a launcher with search, buttons for running windows, and a clock. The look is softer and rounder than that.

Glaze is in early development. This guide covers what works and how the shell is meant to behave. PROJECT_STATUS.md lists exactly what is built and tested.


1. What works today

Built and unit-tested:

  • The theme system (glaze-common::theme): Glaze Clay (default) and Glaze Classic, each in light and dark, written out as GTK4 CSS.
  • Versioned configuration that migrates older files (glaze-common::config).
  • The application registry (glaze-service): it reads the installed .desktop files, applies the XDG visibility rules and ranks launcher searches.
  • Launching: glaze-service starts applications from an argv vector, never through a shell.
  • The session environment and a supervisor that restarts crashed components a limited number of times (glaze-session).
  • The glaze command-line client (glaze-cli). It lists and searches applications, prints the launch argv, launches applications, reads and writes configuration and sends raw IPC requests. See docs/man/glaze.1.
  • The GTK4 shell (panel and Start menu) and the Settings app, running on Sway.

Not done yet:

  • Glaze's own compositor (glaze-compositor, built on Smithay) is in development. Until it is ready, Sway manages windows (ADR-0002).
  • The system tray, notifications, XWayland and multi-monitor support.

Glaze never changes your login manager, display manager or boot settings.

who wants to build and test the portable parts today, see docs/contributing.md.


2. The panel

The panel sits along the bottom edge by default. From left to right:

Region Contents
Glaze button The start button. Opens the launcher and stays highlighted while it is open.
Pinned apps Applications you have pinned, always visible.
Running windows One button per open window. The active window's button looks pressed.
Spacer Flexible space that keeps the right-hand group at the edge.
Tray / status Status icons. Not implemented yet.
Clock / date Time and date.
Show desktop Optional. Planned.

Pinned and running applications have different button styles. If no compositor is connected, the window area stays empty.


3. The launcher

The launcher is a start menu: a list of your applications with a search box that filters as you type. It lists the applications actually installed, from their .desktop files, through the glaze-service registry.

Opening and closing

  • Click the Glaze button to open the launcher.
  • The launcher grows out of the button as it opens.
  • Click anywhere outside the launcher to dismiss it. Keyboard focus returns to where it was.
  • Press Escape to dismiss it without launching anything.

Searching

Results are ranked in a fixed order: exact name match first, then names that start with the query, words that start with it, names that contain it, and names that contain its letters in order. Keywords, the generic name, the comment and the desktop-file id count for less. Matched letters are highlighted. With an empty search box the launcher shows all applications, and recently used ones when that history is available.

Keyboard reference

Key Action
Any printable character Append to the search query; results update immediately
Backspace Delete the last character of the query
↓ / ↑ Move the selection down / up through the results
Enter Launch the selected application
Escape Close the launcher without launching
Tab Move focus between the launcher's controls (query box, results)

Launching behaviour

Enter asks glaze-service to launch the selected application by its desktop id. The service expands the Exec field codes, builds an argv vector and starts the process detached. Because .desktop data never reaches a shell, a malicious Exec= line cannot run shell commands. Applications with Terminal=true open in a terminal emulator.


4. Themes: Glaze Clay and Glaze Classic

Glaze has two themes. Each has its own light and dark palettes; dark is designed separately, not inverted from light.

Glaze Clay (default) Glaze Classic (heritage)
Character Soft and rounded Tighter and squarer, closer to 2000-era desktops
Panel height ~52 logical px ~36 logical px
Control corner radius ~10 px ~3 px
Menu / overlay radius ~16 / ~20 px ~4 / ~5 px
Motion (micro / menu) 130 ms / 190 ms 60 ms / 90 ms
Shadow Soft and diffused Minimal and crisp

Both themes define the same colour roles: canvas, surface, raised and sunken surfaces, border, primary and secondary text, accent and accent text, focus, danger, success, warning, shadow and highlight. The test suite checks that shell text and accent text meet WCAG 2.2 AA contrast in all four theme and scheme combinations.

Light and dark

Light and dark are chosen separately from the theme. With reduced motion turned on, transitions take 0ms.

Choose the theme in the Settings app or in the configuration file (§6).


5. Clock and pinned applications

  • Clock. Shows the time and date, and optionally seconds. It uses tabular figures, so the width does not change as digits change. 12- or 24-hour time and the date format can be configured.
  • Pinned applications. Pinned applications stay on the panel. They are listed by desktop-file id (for example org.mozilla.firefox or glaze-settings), which is the .desktop file name without the extension. To pin an application, add it to the pinned list in ~/.config/glaze/config.toml. Right-click to pin or unpin is planned.

6. Configuration

Glaze stores user configuration as TOML at:

$XDG_CONFIG_HOME/glaze/config.toml      # default: ~/.config/glaze/config.toml

Every key has a default, so a partial or hand-edited file still loads. The file has a version number, and older files are upgraded without losing settings.

The keys below are the schema in glaze-common::config. Set them in the Settings app, with glaze config set <key> <value> (which validates the value), or by editing the file. glaze config get prints the configuration in effect.

Appearance: [appearance]

Key Values Default Meaning
theme clay, classic clay Glaze Clay or Glaze Classic.
scheme light, dark light Colour scheme.
reduced_motion true, false false Emit zero-duration transitions.
scale number 1.0 UI scale multiplier; 1.0 follows the system.
font_scale number 1.0 Extra font scaling on top of the theme base size.

Panel: [panel]

Key Values Default Meaning
position top, bottom, left, right bottom Docked edge.
height integer (logical px) or omitted theme default Override panel thickness.
autohide never, smart, always never Auto-hide behaviour.
show_labels true, false true Window titles next to task icons.
clock_24h true, false true 24-hour clock.
show_seconds true, false false Show seconds in the clock.
show_date true, false true Show the date.
date_format string or omitted none Custom date format fallback.

Launcher: [launcher]

Key Values Default Meaning
search_limit integer 8 Maximum results shown.
show_recent true, false true Show recently used apps on an empty query.
pinned list of desktop ids [] Applications pinned to the panel / favourites.

Desktop: [desktop]

Key Values Default Meaning
wallpaper path or omitted none Wallpaper image; omitted uses the theme canvas colour.
show_icons true, false false Show desktop icons.

Session: [session]

Key Values Default Meaning
compositor auto, sway, layer-shell, glaze, none auto Which compositor backend the shell binds to.
restore_apps true, false false Restore applications on session start.
debug true, false false Verbose shell logging.

Example

# ~/.config/glaze/config.toml
version = 2

[appearance]
theme = "clay"
scheme = "dark"
reduced_motion = false

[panel]
position = "bottom"
clock_24h = true
show_date = true

[launcher]
pinned = ["org.mozilla.firefox", "glaze-settings"]

7. Running Glaze from the command line

The glaze client and the glaze-session developer tool are documented in full in docs/man/glaze.1 and docs/man/glaze-session.1.

glaze: inspect and drive the service

glaze apps                              # list discovered applications
glaze search firefox --limit 5          # ranked search of the real registry
glaze exec-line org.mozilla.firefox     # print the exact launch argv (JSON)
glaze launch org.mozilla.firefox        # launch it (never via a shell)
glaze status                            # version, registry size, paths
glaze config get                        # print the whole config as TOML
glaze config get panel.position         # print one value
glaze config set appearance.scheme dark # persist a value
glaze ipc '{"kind":"ping"}'             # raw IPC request (Unix only)

glaze exits 0 on success, 1 for a user error (bad input, unknown app or value, failed request) and 2 for an internal error (config I/O, IPC transport).

glaze-session: developer session launcher

On a Wayland host:

# Print the environment a Glaze session would export
glaze-session env --backend auto

# Check that the components a session needs are present
glaze-session check --backend sway

# Start the session, nested inside a window (host session untouched)
glaze-session run --backend sway --nested

# Show the planned session id and environment as JSON
glaze-session status

glaze-session accepts env, check, run and status, plus --backend (auto, sway, glaze, none) and --nested, and -h/--help.


8. Limitations

  • Compositor. Glaze's own compositor is not ready, so Sway manages windows for now.
  • Nothing is faked. With no compositor connected the taskbar is empty, and the launcher only lists installed applications.
  • Testing. Runtime testing on x86_64 and aarch64 needs a real machine or a VM. PROJECT_STATUS.md records what was tested where, with dates.

9. Where to go next

Source: docs/user-guide.md. Corrections go there.