Configuration File
mangowm uses a simple configuration file format. By default, it looks for a configuration file in ~/.config/mango/.
-
Locate Default Config
A fallback configuration is provided at /etc/mango/config.conf. You can use this as a reference.
-
Create User Config
Copy the default config to your local config directory to start customizing.
-
Launch with Custom Config (Optional)
If you prefer to keep your config elsewhere, you can launch mango with the -c flag.
Sub-Configuration
To keep your configuration organized, you can split it into multiple files and include them using the source keyword.
Validate Configuration
You can check your configuration for errors without starting mangowm:
Use with source-optional for shared configs across different setups.
Environment Variables
You can define environment variables directly within your config file. These are set before the window manager fully initializes.
Warning: Environment variables defined here will be reset every time you reload the configuration.
Autostart
mangowm can automatically run commands or scripts upon startup. There are two modes for execution:
| Command |
Behavior |
Usage Case |
exec-once |
Runs only once when mangowm starts. |
Status bars, Wallpapers, Notification daemons |
exec |
Runs every time the config is reloaded. |
Scripts that need to refresh settings |
Example Setup