dillonkearns / mobster

Pair and mob programming timer for Mac, Windows, and Linux.
http://mobster.cc
MIT License
308 stars 39 forks source link

Hook to run shell script when active mobster change #63

Open jonwalstedt opened 5 years ago

jonwalstedt commented 5 years ago

Is there a way to run a custom shell script when the active mobster change?

dillonkearns commented 5 years ago

There isn't, but you could watch the active mobsters file for changes.

Here's an example script that uses the file with the list of active mobsters for the git authors:

https://github.com/dillonkearns/mobster/blob/master/mobster-commit.sh

For example, you could do this using a tool like fswatch. The active mobsters file is updated every time there is a rotation. If I'm remembering correctly, the name in the front of the list is the driver.