added steam toggle

This commit is contained in:
kenji
2025-07-16 09:12:06 -05:00
parent 6cf5d2bd02
commit e71b0fe41f
3 changed files with 146 additions and 41 deletions
+9 -1
View File
@@ -66,10 +66,18 @@ class Command:
and c["title"] == "btop"
and c["workspace"]["name"] == "special:sysmon",
# ["foot", "-a", "btop", "-T", "btop", "fish", "-C", "exec btop"],
["sleep", "1", "kitty", "-T", "btop", "fish", "-c", "btop"],
["kitty", "-T", "btop", "fish", "-c", "btop"],
)
hypr.dispatch("togglespecialworkspace", "sysmon")
def steam(self) -> None:
self.spawn_or_move(
lambda c: c["class"] == "steam" or c["initialTitle"] == "Steam",
["steam"],
"steam",
)
hypr.dispatch("togglespecialworkspace", "steam")
def todo(self) -> None:
self.spawn_or_move(lambda c: c["class"] == "Todoist", ["todoist"], "todo")
hypr.dispatch("togglespecialworkspace", "todo")