Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mangowm/mango/llms.txt
Use this file to discover all available pages before exploring further.
Animation Types
Mango supports two primary animation types:
- slide - Windows slide in/out from edges
- zoom - Windows scale up/down
Basic Animation Settings
Enable animations for windows
Enable animations for layer surfaces (panels, overlays, etc.)
Animation Types per Action
Animation type when opening windowsValues: slide, zoomanimation_type_open=slide
Animation type when closing windowsValues: slide, zoomanimation_type_close=slide
Fade Effects
Enable fade-out animation
Starting opacity for fade-in (0.0 - 1.0)
Starting opacity for fade-out (0.0 - 1.0)fadeout_begin_opacity=0.8
Tag Animation
Direction for tag switching animations
1 - Horizontal (left/right)
0 - Vertical (up/down)
tag_animation_direction=1
Zoom Animation Parameters
Initial scale ratio for zoom animations (0.0 - 1.0)
End scale ratio for zoom animations (0.0 - 1.0)
Animation Durations
All durations are in milliseconds.
Duration for window open animations in millisecondsanimation_duration_open=400
Duration for window close animations in millisecondsanimation_duration_close=800
Duration for window move animations in millisecondsanimation_duration_move=500
Duration for tag switching animations in millisecondsanimation_duration_tag=350
Duration for focus change animations in millisecondsSet to 0 to disable focus animationsanimation_duration_focus=0
Animation Curves (Bezier Easing)
Animation curves use cubic Bezier format: x1,y1,x2,y2
Common easing curves:
- Linear:
0,0,1,1
- Ease-in-out:
0.42,0,0.58,1
- Ease-out:
0,0,0.58,1
- Ease-in:
0.42,0,1,1
- Custom (Mango default):
0.46,1.0,0.29,1
animation_curve_open
string
default:"0.46,1.0,0.29,1"
Bezier curve for window open animationsanimation_curve_open=0.46,1.0,0.29,1
animation_curve_close
string
default:"0.08,0.92,0,1"
Bezier curve for window close animationsanimation_curve_close=0.08,0.92,0,1
animation_curve_move
string
default:"0.46,1.0,0.29,1"
Bezier curve for window move animationsanimation_curve_move=0.46,1.0,0.29,1
animation_curve_tag
string
default:"0.46,1.0,0.29,1"
Bezier curve for tag switching animationsanimation_curve_tag=0.46,1.0,0.29,1
animation_curve_focus
string
default:"0.46,1.0,0.29,1"
Bezier curve for focus change animationsanimation_curve_focus=0.46,1.0,0.29,1
animation_curve_opafadeout
string
default:"0.5,0.5,0.5,0.5"
Bezier curve for opacity fade-outanimation_curve_opafadeout=0.5,0.5,0.5,0.5
animation_curve_opafadein
string
default:"0.46,1.0,0.29,1"
Bezier curve for opacity fade-inanimation_curve_opafadein=0.46,1.0,0.29,1
Complete Animation Configuration
Default Configuration
# Enable animations
animations=1
layer_animations=1
# Animation types
animation_type_open=slide
animation_type_close=slide
# Fade effects
animation_fade_in=1
animation_fade_out=1
fadein_begin_opacity=0.5
fadeout_begin_opacity=0.8
# Tag animation
tag_animation_direction=1
# Zoom parameters
zoom_initial_ratio=0.3
zoom_end_ratio=0.8
# Durations (milliseconds)
animation_duration_open=400
animation_duration_close=800
animation_duration_move=500
animation_duration_tag=350
animation_duration_focus=0
# Bezier curves
animation_curve_open=0.46,1.0,0.29,1
animation_curve_close=0.08,0.92,0,1
animation_curve_move=0.46,1.0,0.29,1
animation_curve_tag=0.46,1.0,0.29,1
animation_curve_focus=0.46,1.0,0.29,1
animation_curve_opafadeout=0.5,0.5,0.5,0.5
animation_curve_opafadein=0.46,1.0,0.29,1
Example Configurations
Fast and Snappy
animations=1
animation_type_open=zoom
animation_type_close=zoom
animation_duration_open=200
animation_duration_close=200
animation_duration_move=200
animation_duration_tag=200
animation_curve_open=0,0,0.58,1
animation_curve_close=0,0,0.58,1
Smooth and Slow
animations=1
animation_type_open=slide
animation_type_close=slide
animation_duration_open=600
animation_duration_close=1000
animation_duration_move=700
animation_duration_tag=500
animation_curve_open=0.42,0,0.58,1
animation_curve_close=0.42,0,0.58,1
Zoom with Fade
animations=1
animation_type_open=zoom
animation_type_close=zoom
animation_fade_in=1
animation_fade_out=1
zoom_initial_ratio=0.5
zoom_end_ratio=0.95
fadein_begin_opacity=0.0
fadeout_begin_opacity=1.0
animation_duration_open=350
animation_duration_close=350
animations=0
layer_animations=0
animation_duration_focus=0
Per-Layer Animation Overrides
You can override animation types for specific layer surfaces using layer rules:
# Use zoom animation for rofi
layerrule=animation_type_open:zoom,layer_name:rofi
layerrule=animation_type_close:zoom,layer_name:rofi
See Rules for more information on layer rules.
Bezier Curve Reference
Visualize and create custom Bezier curves at:
Common Presets
# Linear
0,0,1,1
# Ease (default CSS)
0.25,0.1,0.25,1
# Ease-in
0.42,0,1,1
# Ease-out
0,0,0.58,1
# Ease-in-out
0.42,0,0.58,1
# Ease-in-back
0.6,-0.28,0.735,0.045
# Ease-out-back
0.175,0.885,0.32,1.275
# Ease-in-out-back
0.68,-0.55,0.265,1.55
- Disable animations entirely on low-end hardware
- Reduce durations for snappier feel and better performance
- Disable layer animations if experiencing lag with overlays
- Set
animation_duration_focus=0 to eliminate focus delay
- Use slide instead of zoom for slightly better performance