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 = () => { export const FocusedClient = () => {
const hyprland = AstalHyprland.get_default(); const hyprland = AstalHyprland.get_default();
const title = bind(hyprland, "focusedClient") const title = bind(hyprland, "focusedClient").as(
.as((fcsClient) => fcsClient.title) (fcsClient) => fcsClient.title,
.toString(); );
return <label>{title}</label>; return <label cssClasses={["focused-client"]}>{title}</label>;
}; };