From e5f1231749bc7c795302b9dc004c891ce162fb2b Mon Sep 17 00:00:00 2001 From: kenji Date: Wed, 16 Jul 2025 08:40:47 -0500 Subject: [PATCH] changed foot to kitty --- src/caelestia/subcommands/toggle.py | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/caelestia/subcommands/toggle.py b/src/caelestia/subcommands/toggle.py index e045c43..d466f65 100644 --- a/src/caelestia/subcommands/toggle.py +++ b/src/caelestia/subcommands/toggle.py @@ -23,7 +23,10 @@ class Command: def move_client(self, selector: callable, workspace: str) -> None: for client in self.get_clients(): if selector(client): - hypr.dispatch("movetoworkspacesilent", f"special:{workspace},address:{client['address']}") + hypr.dispatch( + "movetoworkspacesilent", + f"special:{workspace},address:{client['address']}", + ) def spawn_client(self, selector: callable, spawn: list[str]) -> bool: exists = any(selector(client) for client in self.get_clients()) @@ -33,18 +36,24 @@ class Command: return not exists - def spawn_or_move(self, selector: callable, spawn: list[str], workspace: str) -> None: + def spawn_or_move( + self, selector: callable, spawn: list[str], workspace: str + ) -> None: if not self.spawn_client(selector, spawn): self.move_client(selector, workspace) def communication(self) -> None: - self.spawn_or_move(lambda c: c["class"] == "discord", ["discord"], "communication") + self.spawn_or_move( + lambda c: c["class"] == "discord", ["discord"], "communication" + ) self.move_client(lambda c: c["class"] == "whatsapp", "communication") hypr.dispatch("togglespecialworkspace", "communication") def music(self) -> None: self.spawn_or_move( - lambda c: c["class"] == "Spotify" or c["initialTitle"] == "Spotify" or c["initialTitle"] == "Spotify Free", + lambda c: c["class"] == "Spotify" + or c["initialTitle"] == "Spotify" + or c["initialTitle"] == "Spotify Free", ["spicetify", "watch", "-s"], "music", ) @@ -53,8 +62,11 @@ class Command: def sysmon(self) -> None: self.spawn_client( - lambda c: c["class"] == "btop" and c["title"] == "btop" and c["workspace"]["name"] == "special:sysmon", - ["foot", "-a", "btop", "-T", "btop", "fish", "-C", "exec btop"], + lambda c: c["class"] == "btop" + and c["title"] == "btop" + and c["workspace"]["name"] == "special:sysmon", + # ["foot", "-a", "btop", "-T", "btop", "fish", "-C", "exec btop"], + ["kitty", "-T", "btop", "fish", "-c", "btop"], ) hypr.dispatch("togglespecialworkspace", "sysmon")