Skip to content

Commit

Permalink
dev2sh: use dotoolc-args instead of xdotool
Browse files Browse the repository at this point in the history
  • Loading branch information
XPhyro committed Aug 17, 2024
1 parent 0efeb54 commit 45f351c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/py/udev/dev2sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class API:

API.spawn_cmd(
[
"xdotool",
"dotoolc-args",
*[*(sum(zip(["keydown"] * len(m), m), ()))],
*[*(sum(zip(["key"] * len(k), k), ()))],
*[*(sum(zip(["keyup"] * len(m), m), ()))],
Expand All @@ -87,7 +87,7 @@ class API:

API.spawn_cmd(
[
"xdotool",
"dotoolc-args",
*[*(sum(zip(["keydown"] * len(m), m), ()))],
*[*(sum(zip(["keydown"] * len(k), k), ()))],
]
Expand All @@ -100,7 +100,7 @@ class API:

API.spawn_cmd(
[
"xdotool",
"dotoolc-args",
*[*(sum(zip(["keyup"] * len(m), m), ()))],
*[*(sum(zip(["keyup"] * len(k), k), ()))],
]
Expand Down Expand Up @@ -142,7 +142,7 @@ class API:

API.spawn_cmd(
[
"xdotool",
"dotoolc-args",
*[*(sum(zip(["keydown"] * len(m), m), ()))],
*[*(sum(zip(["click"] * len(b), b), ()))],
*[*(sum(zip(["keyup"] * len(m), m), ()))],
Expand All @@ -156,7 +156,7 @@ class API:

API.spawn_cmd(
[
"xdotool",
"dotoolc-args",
*[*(sum(zip(["keydown"] * len(m), m), ()))],
*[*(sum(zip(["mousedown"] * len(b), b), ()))],
]
Expand All @@ -169,7 +169,7 @@ class API:

API.spawn_cmd(
[
"xdotool",
"dotoolc-args",
*[*(sum(zip(["keyup"] * len(m), m), ()))],
*[*(sum(zip(["mouseup"] * len(b), b), ()))],
]
Expand Down Expand Up @@ -206,7 +206,7 @@ class API:

@staticmethod
def type_text(text):
API.spawn_cmd(["xdotool", "type", text])
API.spawn_cmd(["dotoolc-args", "type", text])


class CallbackData:
Expand Down

0 comments on commit 45f351c

Please sign in to comment.