feat: fix focused client title

This commit is contained in:
tux
2025-05-31 17:36:39 +05:30
parent 5b0550e7e8
commit e2698653e9

View File

@@ -48,9 +48,9 @@ export const WorkspaceButton = () => {
export const FocusedClient = () => {
const hyprland = AstalHyprland.get_default();
const title = bind(hyprland, "focusedClient")
.as((fcsClient) => fcsClient.title)
.toString();
const title = bind(hyprland, "focusedClient").as(
(fcsClient) => fcsClient.title,
);
return <label>{title}</label>;
return <label cssClasses={["focused-client"]}>{title}</label>;
};