talon-scripts/community/core/system_command.py
2025-08-19 08:06:37 -04:00

18 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)