DRAGONFRUIT PROJECT Wayland compositor · Linux Codeberg repository ↗
dragonfruitWayland compositor

Configuration guide

Config files, syntax, includes and reload

Configuration guide

Dragonfruit reads a plain key=value file. A stock Mango config works unchanged. TOML files are also accepted.

SECTION 03 · Configuration
Scope: Runtime Setup
Repository and source ↗

Search order

Dragonfruit uses the first of these that exists (a config.toml is also accepted):

  • ~/.config/dragonfruit/config.conf
  • ~/.config/mango/config.conf
  • /etc/dragonfruit/config.conf
  • /etc/mango/config.conf

Use -c /path/to/config.conf to choose a file.

Syntax

One setting per line. # starts a comment. Variables and includes are supported.

source=~/.config/dragonfruit/binds.conf
source_optional=~/.config/dragonfruit/local.conf

var=term,foot
bind=ALT,Return,spawn,$term

border_px=4
focus_color=0xc9b890ff

Reload and check

Super + R reloads by default. With auto_reload_config=1 (the default), changes to the config files reload automatically.

dfmsg dispatch reload_config
dragonfruit -c ~/.config/dragonfruit/config.conf -p

Further reading

Basics, TOML syntax and the configuration reference.

← Previous

Displays & outputs

Next →

Keyboard bindings