controllers
This commit is contained in:
9
desktop_env/controllers/xdotool.py
Normal file
9
desktop_env/controllers/xdotool.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from fabric import Connection
|
||||
|
||||
class XDoToolController:
|
||||
def __init__(self, ssh_connection: Connection):
|
||||
self.ssh_connection = ssh_connection
|
||||
|
||||
def _execute_xdotool_command(self, command: list[str]) -> None:
|
||||
result = self.ssh_connection.run(f"DISPLAY=:0 xdotool {command}", hide=True)
|
||||
return result.stdout.strip()
|
||||
Reference in New Issue
Block a user