A Python script to arrange Python and Windows Terminal windows in a 5x6 grid on a selected monitor, accessible via a right-click context menu in Windows.
- Git: Ensure Git is installed (
git --version). - Python: Ensure Python is installed and added to PATH (
python --version). - PowerShell: Available by default on Windows.
Run the following PowerShell command in Admin Mode to clone the repository to C:\Program Files\TerminalPosition and set up the context menu:
$repoPath = "C:\Program Files\TerminalPosition"; if (Test-Path $repoPath) { Remove-Item -Recurse -Force $repoPath }; git clone https://github.com/vikassharma545/TerminalSequence.git $repoPath; cd $repoPath; Start-Process cmd.exe -ArgumentList "/c setup_context_menu.bat" -Verb RunAs- Clones the repository to
C:\Program Files\TerminalPosition. - Installs dependencies (
psutil,screeninfo,pygetwindow,pywin32). - Adds a "Terminal Sequence" option to the right-click context menu.
- Prompts for UAC approval (click "Yes").
- Right-click on the desktop or in File Explorer.
- Select Terminal Sequence.
- Approve the UAC prompt.
- Choose a monitor if multiple are detected.
- The script arranges open Python and Windows Terminal windows in a 5x6 grid.
window_sequence.py: Main script to arrange windows.setup_context_menu.bat: Configures dependencies and context menu.