The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Trigger An External Process When A New Tab Is Made In iTerm2

TODO: Pull subtitle into page object

This is what I use for iterm-image-cycler.

It's a bare bones script for iTerm2 two that triggers and external process.

code_start_default_section code_end_default_section

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Trigger An External Process When A New Tab Is Made In iTerm2

-- p

This is what I use for iterm-image-cycler.

-- p

It's a bare bones script for iTerm2 two that triggers
and external process.

-- code/
-- python

#!/usr/bin/env python3

import iterm2
import subprocess

async def main(connection):
    async with iterm2.NewSessionMonitor(connection) as mon:
        while True:
            await mon.async_get()
            subprocess.run(['path/to/executable'])
iterm2.run_forever(main)

-- /code


-- categories
-- iTerm2 

-- metadata
-- date: 2023-02-19 03:45:16
-- id: 2lwyd6c5
-- status: draft 
-- type: post
-- SCRUBBED_NEO: false
-- site: aws