From b52373f67c830786542b72da96e57b1924a97583 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Sat, 19 Oct 2024 12:20:22 +0200 Subject: navigate in workspaces --- modules/intents/process.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'modules/intents/process.py') diff --git a/modules/intents/process.py b/modules/intents/process.py index 4b3fdab..bc834b6 100644 --- a/modules/intents/process.py +++ b/modules/intents/process.py @@ -1,12 +1,9 @@ import os from typing import Dict - - -def switch_to_workspace(data: Dict): - os.popen(f"swaymsg workspace {data["workspace"]}") +from .sway import HesNavigate def HesExecuteProcess(data: Dict): if "workspace" in data: - switch_to_workspace(data) + HesNavigate(data) os.popen(data["process"].strip()) -- cgit v1.2.3-70-g09d2