forked from Shinonome/caelestia-cli
changed btop class to kitty for sysmon toggle
This commit is contained in:
@@ -61,18 +61,18 @@ class Command:
|
|||||||
hypr.dispatch("togglespecialworkspace", "music")
|
hypr.dispatch("togglespecialworkspace", "music")
|
||||||
|
|
||||||
def sysmon(self) -> None:
|
def sysmon(self) -> None:
|
||||||
|
hypr.dispatch("togglespecialworkspace", "sysmon")
|
||||||
self.spawn_client(
|
self.spawn_client(
|
||||||
lambda c: c["class"] == "btop"
|
lambda c: c["class"] == "kitty"
|
||||||
and c["title"] == "btop"
|
and c["title"] == "btop"
|
||||||
and c["workspace"]["name"] == "special:sysmon",
|
and c["workspace"]["name"] == "special:sysmon",
|
||||||
# ["foot", "-a", "btop", "-T", "btop", "fish", "-C", "exec btop"],
|
# ["foot", "-a", "btop", "-T", "btop", "fish", "-C", "exec btop"],
|
||||||
["kitty", "--detach", "-T", "btop", "fish", "-C", "btop"],
|
["kitty", "--detach", "-T", "btop", "fish", "-C", "btop"],
|
||||||
)
|
)
|
||||||
hypr.dispatch("togglespecialworkspace", "sysmon")
|
|
||||||
|
|
||||||
def todo(self) -> None:
|
def todo(self) -> None:
|
||||||
self.spawn_or_move(lambda c: c["class"] == "Todoist", ["todoist"], "todo")
|
|
||||||
hypr.dispatch("togglespecialworkspace", "todo")
|
hypr.dispatch("togglespecialworkspace", "todo")
|
||||||
|
self.spawn_or_move(lambda c: c["class"] == "Todoist", ["todoist"], "todo")
|
||||||
|
|
||||||
def specialws(self) -> None:
|
def specialws(self) -> None:
|
||||||
workspaces = hypr.message("workspaces")
|
workspaces = hypr.message("workspaces")
|
||||||
|
|||||||
Reference in New Issue
Block a user