Device Window Arrangement Feature Guide
Device Window Arrangement is one of Escrcpy's advanced features, designed specifically for multi-device management and screen space optimization. Through a visual drag-and-drop interface, you can precisely control the position, size, and layout of each device window, enabling efficient multi-device collaborative operations.
Feature Overview
The Window Arrangement feature provides a fullscreen visual editing interface that allows you to:
- Simultaneously manage the layout of multiple device windows
- Adjust window positions and sizes through drag-and-drop
- Set global default configurations and device-specific configurations
- Preview window layout effects in real-time
- Save and load custom layout schemes
Core Components
Global Configuration Component
The global configuration component is used to set default window parameters for all devices, including:
- Default window width and height
- Default window position coordinates
- Other common window properties
Device Window Component
Each connected device can be added as an independent window component, supporting:
- Independent position and size settings
- Device-specific window configurations
- Inheritance or override of global configurations
Detailed Operation Guide
Starting Window Arrangement
- Launch from Main Interface
- Find the "Arrange" button in the top-right corner of the main interface
- Click the button to enter window arrangement interface
- The system will open a fullscreen window arrangement interface
Adding and Managing Components
Adding Global Configuration Component
- Click the "Add Widget" dropdown button
- Select "Global Configuration" option
- The global configuration component will appear in the arrangement area
- This component is used to set default parameters for all devices
Note: Each arrangement scheme can only have one global configuration component.
Adding Device Window Components
- Click the "Add Widget" dropdown button
- Select the device you want to add from the device list
- The device window component will be added to the arrangement area
- Each device can only be added once
Device Display Rules:
- Only currently connected devices are displayed
- Already added devices will not appear repeatedly in the dropdown list
- Device names prioritize custom names, followed by device models
Window Layout Adjustment
Moving Window Position
- Select Target Window: Click the window component you want to move
- Drag to Move: Hold down the left mouse button and drag the window to the target position
- Real-time Feedback: You can see real-time position changes during dragging
- Release to Position: Release the mouse to complete position adjustment
Adjusting Window Size
- Locate Adjustment Point: Move the mouse to the corner position of the window
- Drag to Adjust: Hold down the left mouse button and drag to change window size
- Proportion Constraints: The system automatically maintains reasonable window proportions
- Minimum Size Limit: Windows cannot be smaller than the preset minimum size
Size Limitation Description
- Minimum Width: 1/6 of container width
- Minimum Height: 1/4 of container height
- Boundary Constraints: Windows cannot be dragged outside the arrangement area
- Overlap Handling: Windows are allowed to overlap, but complete occlusion should be avoided
Layout Management Operations
Reset Layout
- Click the "Reset Layout" button in the control panel
- The system will clear all current components
- Reload saved layout configurations
- If no saved configuration exists, an empty arrangement area will be displayed
Clear All Components
- Click the "Clear All" button
- The system will display a confirmation dialog
- After confirmation, all window components will be removed
- The arrangement area will become blank
Delete Individual Component
- Hover the mouse over the target window component
- Click the delete button (×) in the top-right corner of the window
- The component will be immediately removed from the arrangement area
- The corresponding device will reappear in the addable list
Configuration Saving and Application
Saving Layout Configuration
- Complete Layout Adjustment: Ensure all window components are adjusted to satisfactory positions and sizes
- Click Save Button: Click the "Save Layout" button at the bottom of the interface
- Configuration Writing: The system will write current layout information to configuration files
- Success Feedback: Display a successful save message prompt
Configuration Storage Mechanism
- Global Configuration: Stored in
scrcpy.global
configuration node - Device Configuration: Stored in
scrcpy.[DeviceID]
configuration node - Parameter Format:
--window-width
: Window width--window-height
: Window height--window-x
: Window X coordinate--window-y
: Window Y coordinate
Configuration Application Timing
- When Starting Mirroring: Automatically apply corresponding window configuration when device starts mirroring
- Configuration Inheritance: Device-specific configuration takes priority, unset parameters inherit global configuration
- Dynamic Updates: Configuration takes effect immediately after saving, no application restart required
Troubleshooting
Common Issues
Issue 1: Device not showing in add list
- Confirm device is properly connected
- Check if device is already added to arrangement
- Try refreshing device list
Issue 2: Window dragging not responsive
- Confirm mouse click is in draggable area of window
- Check if other programs are occupying mouse events
- Try reopening arrangement interface
Issue 3: Saved layout not taking effect
- Confirm "Save Layout" button was clicked
- Check if configuration file has write permissions
- Try restarting application and testing again
Issue 4: Abnormal window size
- Check if minimum size limits are exceeded
- Confirm monitor resolution settings are correct
- Try resetting layout and reconfiguring
By properly using the Window Arrangement feature, you can significantly improve multi-device management efficiency and create a personalized operating environment suitable for your workflow.