Last active
March 19, 2026 16:08
-
-
Save zwieratko/b4d6c88a31bdff03bac819df42befac1 to your computer and use it in GitHub Desktop.
A simple script that automates the creation and precise positioning of three separate iTerm2 windows. It applies custom profiles, executes initial commands (such as connecting to specific sessions), and arranges the windows vertically at fixed screen coordinates. The values are optimized for a 4K monitor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env osascript | |
| tell application "iTerm" | |
| set w1 to (create window with profile "Small Default zsh 25x100") | |
| tell current session of w1 | |
| write text "con 0" | |
| end tell | |
| tell w1 to set bounds to {880, 45, 1680, 475} | |
| set w2 to (create window with profile "Small Default zsh 25x100") | |
| tell current session of w2 | |
| write text "con 8" | |
| end tell | |
| tell w2 to set bounds to {880, 490, 1680, 920} | |
| set w3 to (create window with profile "Small Default zsh 25x100") | |
| tell w3 to set bounds to {880, 935, 1680, 1365} | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment