Skip to content

About

A desktop app built with tkinter that lets users manage window positions and states. It uses psutil, pygetwindow, and win32gui to interact with system windows, saving and restoring positions across monitors. It also ensures that not running processes are automatically started.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Crypto90's Workspace Manager Banner

🖥️ Crypto90's Workspace Manager

Intelligent, multi-monitor window management and workspace restoration for Windows.

GitHub Release Build Status Platform Python Version License Ko-Fi

Download Executable • Key Features • UI Preview • CLI Usage • How It Works • Build Guide


💡 Overview

Crypto90's Workspace Manager solves a universal workspace frustration: every time your PC reboots, monitors wake from sleep, or applications update, your windows scatter across screens.

With Workspace Manager, your ideal desktop layouts are saved into distinct presets (up to 10). When triggered—either automatically on system boot or with a single click—it scans all connected displays, ensures missing applications are automatically started, and smoothly arranges every window into its exact coordinates, dimensions, and state (including true maximized windows).


🚀 Download Pre-built Executable

End-users do not need Python installed. Standalone Windows binaries are automatically compiled via GitHub Actions:

Version Asset Direct Download Platform
v0.2.2 (Latest) Crypto90s_WorkspaceManager.exe ⬇️ Download v0.2.2 Executable Windows 10 / 11 (64-bit)

📁 Check all versions and release notes in GitHub Releases.


✨ Key Features

🎯 Multi-Monitor Precision

Per-Monitor V2 High-DPI awareness prevents coordinate distortion or off-screen jumping across mixed-scaling displays (e.g. 4K at 150% + 1080p at 100%).

⚡ Non-Blocking Multithreading

Window ordering and launching run on a dedicated background worker thread with real-time timestamped logs and a responsive Stop / Cancel button. Zero (Not Responding) GUI freezes.

🔄 Automatic Process Launching

Detects closed applications saved in your preset and launches them automatically before arranging. Supports relocation detection for updated apps (e.g. Chrome, Discord).

🪟 Maximized & Minimized Support

Accurately restores true maximized (SW_MAXIMIZE) and minimized states without window border bleed or flicker.

💾 Safe JSON Storage

Human-readable, easily editable workspace_states_X.json format. Includes automatic, lossless migration from legacy WindowManager presets.

🏷️ Custom Preset Renaming

Personalize your presets with custom labels (e.g., "1: Work / Dev", "2: Gaming", "3: Trading") directly through the interface.

🚀 Silent / Headless CLI Mode

Run window management silently in the background with --silent—perfect for Windows Task Scheduler or automated startup scripts.

📦 UWP & Modern App Support

Resolves AppUserModelId (AUMID) to reliably start Windows Store and UWP applications (e.g., Spotify, Calculator, Terminal).

📸 Screenshot

Workspace Manager Application Interface

⌨️ Command Line Options

Workspace Manager includes a flexible command-line interface for automation and shortcuts:

# Launch GUI and load a specific preset (1-10)
python Crypto90s_WorkspaceManager.py --preset 2

# Headless / Silent Execution (arranges windows in background and exits without GUI)
python Crypto90s_WorkspaceManager.py --preset 1 --silent

# Display version information
python Crypto90s_WorkspaceManager.py --version

# View all command line options
python Crypto90s_WorkspaceManager.py --help

CLI Parameter Reference

Flag Argument Description
--preset 1-10 Specifies which preset to load on launch (defaults to 1).
--silent, --headless None Runs ordering in the background without creating a GUI window.
--version None Displays current software version.
-h, --help None Prints CLI help and usage instructions.

🔄 How It Works

flowchart TD
    A["Launch Workspace Manager"] --> B{"Check CLI Mode"}
    B -->|--silent| C["Run Headless Worker"]
    B -->|Normal| D["Open GUI & Mount Controls"]
    
    D --> E["Load Preset (JSON / Legacy Auto-Migration)"]
    E --> F["Snapshot Running Processes & Displays"]
    F --> G["Render Window Mapping List"]
    
    G --> H["Trigger 'Start, Resize & Order'"]
    C --> H
    
    H --> I["Start Dedicated Worker Thread"]
    I --> J["Launch Any Closed Applications"]
    J --> K["Poll Displays for Matching Handles"]
    K --> L["Apply Coordinates, Dimensions & Maximized States"]
    L --> M{"Auto-Close Enabled?"}
    M -->|Yes| N["Countdown & Exit"]
    M -->|No| O["Ready for Next Action"]
Loading

🛠️ Building from Source

Prerequisites

  • Python 3.8+ (Windows 10 or 11 recommended)
  • Git

1. Clone Repository & Install Dependencies

git clone https://github.com/Crypto90/WindowManager.git
cd WindowManager

pip install -r requirements.txt

2. Run Locally

python Crypto90s_WorkspaceManager.py

3. Build Standalone Executable

You can compile a standalone .exe using PyInstaller:

Option A (One-Click Script on Windows): Double-click build_exe.bat in the repository root.

Option B (Manual Command):

pyinstaller --onefile --noconsole --name "Crypto90s_WorkspaceManager" Crypto90s_WorkspaceManager.py

The compiled binary will be located in the dist/ directory:

dist/Crypto90s_WorkspaceManager.exe

📁 Configuration & Preset Storage

Preset configurations are stored as clean, structured JSON files:

  • Portable location: Next to the executable/script if writable (workspace_states_1.json, etc.).
  • System fallback: %LOCALAPPDATA%\Crypto90s_WorkspaceManager\ if running from a protected directory.

Sample Preset Entry (workspace_states_1.json):

{
  "version": "v0.2.1",
  "workspace_states": {
    "chrome.exe": {
      "process_name": "chrome.exe",
      "window_title": "GitHub - Crypto90/WindowManager",
      "position": [0, 0],
      "size": [1920, 1080],
      "process_path": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
      "minimized": false,
      "maximized": true,
      "launcher_override": null,
      "is_uwp": false,
      "uwp_app_id": null
    }
  },
  "config": {
    "auto_close": false,
    "preset_names": {
      "1": "Development & Research"
    }
  }
}

🤝 Contributing

Contributions, issues, and feature requests are welcome!

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/amazing-feature).
  3. Commit your changes (git commit -m 'Add amazing feature').
  4. Push to the branch (git push origin feature/amazing-feature).
  5. Open a Pull Request.

☕ Support the Developer

If Crypto90's Workspace Manager saves you time and organizes your daily workspace, consider supporting the project:

Buy Me a Coffee


📄 License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

About

A desktop app built with tkinter that lets users manage window positions and states. It uses psutil, pygetwindow, and win32gui to interact with system windows, saving and restoring positions across monitors. It also ensures that not running processes are automatically started.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages