Window Management
Scratchpad
Manage hidden "scratchpad" windows for quick access.
MangoWC supports two types of scratchpads: the standard pool (Sway-like) and named scratchpads.
Standard Scratchpad
Any window can be sent to the "scratchpad" pile, which hides it. You can then cycle through them.
Keybindings:
# Send current window to scratchpad
bind=SUPER,i,minimized
# Toggle (show/hide) the scratchpad
bind=ALT,z,toggle_scratchpad
# Retrieve window from scratchpad (restore)
bind=SUPER+SHIFT,i,restore_minimizedNamed Scratchpad
Named scratchpads are bound to specific keys and applications. When triggered, MangoWC will either launch the app (if not running) or toggle its visibility.
1. Define the Window Rule
You must identify the app using a unique appid or title and mark it as a scratchpad.
windowrule=isnamedscratchpad:1,width:1280,height:800,appid:st-yazi2. Bind the Toggle Key
Format: bind=MOD,KEY,toggle_named_scratchpad,appid,title,command
# Launch 'st' with class 'st-yazi' running 'yazi'
bind=alt,h,toggle_named_scratchpad,st-yazi,none,st -c st-yazi -e yaziAppearance
You can customize the size of scratchpad windows relative to the screen.
scratchpad_width_ratio=0.8
scratchpad_height_ratio=0.9
scratchpadcolor=0x516c93ff