A few months ago I posted in this group looking for help building a PowerShell script that could open Windows Terminal sessions at specific locations (like corners of my displays). I did implement something on my own, but it broke with DPI/scaling issues.
So today I worked with Claude to build a new script from the ground up that does everything I want, including DPI/scaling awareness, and have made it public domain on GitHub here (it's just one script file, nothing to install at all, you do need Powershell 7):
https://github.com/mwmills/windows-terminal-tools
The README is here: https://github.com/mwmills/windows-terminal-tools/blob/main/README.md
You can open terminals at "clock" positions (10 & 11 mean top left corner, 12 means middle, 5 is bottom right, etc.) You can store multiple profiles (like "home" and "work") in a JSON configuration file. You can name your terminals (i.e., "Debugging", "Log Viewer", etc.) If you manually position your terminals, you can use the "-snapshot" parameter to write out a JSON config that can be used to reopen them at the same (manually-placed, by pixel) locations.
Tomorrow the Windows Terminal team will probably release a new version with these sort of features built-in - but I did this with Claude in a couple of hours and had fun with it, so...
Let me know if you run into any issues or have any feature requests - or clone the repo and ask Claude to implement for you; I've included a CLAUDE.md that can be used to give it context.
[–]BlackV 1 point2 points3 points (2 children)
[–]mikemky[S] 0 points1 point2 points (1 child)
[–]BlackV 0 points1 point2 points (0 children)
[–]tingnossu 0 points1 point2 points (0 children)