summaryrefslogtreecommitdiff
path: root/modules/intents/process.py
blob: 4b3fdabfcfe700468b9ad2a2ab1bb90a77724065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import os
from typing import Dict


def switch_to_workspace(data: Dict):
    os.popen(f"swaymsg workspace {data["workspace"]}")

def HesExecuteProcess(data: Dict):
    if "workspace" in data:
        switch_to_workspace(data)

    os.popen(data["process"].strip())