dotfiles/talon/community/community-cursorless-0.4.0/code/app_running.py
2024-11-16 20:27:38 -07:00

12 lines
216 B
Python

from talon import Module, ui
mod = Module()
@mod.scope
def scope():
return {"running": {app.name.lower() for app in ui.apps()}}
ui.register("app_launch", scope.update)
ui.register("app_close", scope.update)