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

17 lines
351 B
Python

import os
import subprocess
from talon import Module
mod = Module()
@mod.action_class
class Actions:
def system_command(cmd: str):
"""execute a command on the system"""
os.system(cmd)
def system_command_nb(cmd: str):
"""execute a command on the system without blocking"""
subprocess.Popen(cmd, shell=True)