Overview
The scratchpad is a hidden workspace where windows can be stored and recalled on demand:- Hidden Storage: Windows in scratchpad are hidden from all tags
- Floating Display: Scratchpad windows appear centered as floating windows
- Quick Toggle: Single keybinding to show/hide scratchpad windows
- Named Scratchpads: Support for multiple independent scratchpads
- Configurable Size: Control scratchpad window dimensions
Basic Usage
Toggle Scratchpad
The primary scratchpad command shows/hides scratchpad windows:- When focused on normal window: Move current window to scratchpad (hide it)
- When scratchpad is hidden: Show all scratchpad windows
- When scratchpad is visible: Hide all scratchpad windows
- When focused on scratchpad window: Hide that specific window
Basic Workflow
Send Window to Scratchpad
Focus any window and press
ALT+z to move it to scratchpad. The window disappears.Scratchpad Configuration
Size and Appearance
Configure scratchpad window dimensions and appearance inconfig.conf:
Scratchpad Border Color
Scratchpad windows have a distinct border color to differentiate them:- Normal windows:
bordercolor=0x444444ff - Focused windows:
focuscolor=0xc9b890ff - Scratchpad windows:
scratchpadcolor=0x516c93ff
Named Scratchpads
Mango supports multiple independent scratchpads, allowing you to organize different quick-access windows.Creating Named Scratchpads
While named scratchpads are mentioned in the README as a feature, specific configuration syntax requires checking the wiki. The basic toggle_scratchpad command works for the default scratchpad.
Use Cases for Named Scratchpads
Terminal Scratchpad
Quick access terminal for commands without cluttering workspace
Music Player
Control music playback without dedicated workspace
Calculator
Quick calculations while working on other tasks
Chat Application
Monitor messages without permanent screen space
System Monitor
Check system resources on demand
Notes
Quick access to scratchpad for temporary notes
Scratchpad Window Behavior
Floating Mode
Scratchpad windows always appear as floating windows:- Centered on screen
- Size controlled by
scratchpad_width_ratioandscratchpad_height_ratio - Appear above tiled windows
- Can be moved and resized like normal floating windows
Focus Behavior
When showing scratchpad:- Scratchpad windows receive focus
- Previous window focus is preserved
- Hiding scratchpad returns focus to previous window
Multi-Monitor Support
Scratchpad windows appear on the currently focused monitor:- Switch monitors, then toggle scratchpad
- Scratchpad follows your focus
- Size ratios apply to current monitor dimensions
Advanced Scratchpad Patterns
Dropdown Terminal
Create a dropdown terminal setup:- Launch terminal (foot, alacritty, etc.)
- Press F12 to send to scratchpad
- Press F12 anytime for instant terminal access
Task-Specific Windows
Organize scratchpad by workflow:- Development: Terminal with development server
- Communication: Chat or email client
- Monitoring: System monitor or log viewer
- Reference: Documentation browser or PDF viewer
Quick Access Tools
Ideal applications for scratchpad:- Password managers
- Color pickers
- Screenshot tools (configuration)
- Clipboard managers
- Weather widgets
- Calendar applications
Scratchpad vs Minimized Windows
Mango provides two ways to hide windows:| Feature | Scratchpad | Minimize |
|---|---|---|
| Access | Toggle binding | Restore binding |
| Display | Floating centered | Returns to original position |
| Use Case | Quick temporary access | Long-term hiding |
| Border Color | Distinct scratchpad color | Normal border color |
| Focus | Always brings to front | May be behind other windows |
Scratchpad Animations
Scratchpad toggle supports smooth animations:Scratchpad Window States
Scratchpad windows can have additional window states:Global Windows
Make scratchpad window visible on all tags:- Window visible on all tags when scratchpad is shown
- Completely hidden when scratchpad is toggled off
Overlay Windows
Make scratchpad always on top:- Reference material while coding
- Chat windows during work
- Monitoring dashboards
Tips and Best Practices
Use Single Keybinding
Use Single Keybinding
Assign scratchpad toggle to an easy-to-reach key like
F12 or ALT+Space for instant access without thinking.Size for Readability
Size for Readability
Adjust
scratchpad_width_ratio and scratchpad_height_ratio based on your applications. Terminal might need 0.8x0.6, calculator might need 0.4x0.5.Combine with Autostart
Combine with Autostart
Launch scratchpad applications in autostart.sh and immediately send them to scratchpad for instant availability.
Visual Distinction
Visual Distinction
Choose a distinct
scratchpadcolor that stands out from normal window borders for easy identification.Example Configuration
Complete scratchpad setup example:Troubleshooting
Scratchpad window too large
Scratchpad window too large
Reduce
scratchpad_width_ratio and scratchpad_height_ratio values. Try 0.7 and 0.8 for a more modest size.Can't find scratchpad windows
Can't find scratchpad windows
Press the toggle binding to show all hidden scratchpad windows. They should appear centered on your current monitor.
Scratchpad appears on wrong monitor
Scratchpad appears on wrong monitor
Focus the desired monitor first, then toggle scratchpad. Scratchpad windows appear on the currently focused monitor.
Border color not changing
Border color not changing
Reload configuration with
SUPER+r after modifying scratchpadcolor in config.conf.Related Features
- Window States - Global, overlay, and other window modes
- Animations - Scratchpad show/hide animations
- Keybindings - Configure scratchpad shortcuts
- Window Commands - Window manipulation commands
