Skip to content

Instantly share code, notes, and snippets.

@roofspirit
roofspirit / monitor_aligner.py
Created November 28, 2025 08:37
KDE Plasma / KScreen Doctor / Automatically make center arrangment two screens in double monitor vertical configuration
"""
This script automatically centers two displays in double monitor vertical configuration like this:
```
┌─────────────────────────┐ ┌─────────────────────────┐
│ │ │ │
│ │ │ │ ┌───────────────┐
│ │ │ │ │ │
│ Display 2 │ │ Display 2 │ │ │
│ │ │ │ │ Display 2 │
│ │ │ │ │ │