app_running.py (216B)
1 from talon import Module, ui 2 3 mod = Module() 4 5 6 @mod.scope 7 def scope(): 8 return {"running": {app.name.lower() for app in ui.apps()}} 9 10 11 ui.register("app_launch", scope.update) 12 ui.register("app_close", scope.update)