mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 21:01:54 +05:30
feat: fix focused client title
This commit is contained in:
@@ -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>;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user