From 9a357c2714a2405518b4f0353bf800eb08b1f78a Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Fri, 21 Mar 2025 16:05:38 -0300 Subject: [PATCH] :sparkles: ags(workspaces): add tooltip for workspaces --- ags/widget/bar/Workspaces.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ags/widget/bar/Workspaces.ts b/ags/widget/bar/Workspaces.ts index ce5b5dd..c8f9e28 100644 --- a/ags/widget/bar/Workspaces.ts +++ b/ags/widget/bar/Workspaces.ts @@ -21,6 +21,11 @@ export function Workspaces(): Gtk.Widget { className: bind(hyprland, "focusedWorkspace").as( (focusedWs: AstalHyprland.Workspace) => workspace.id === focusedWs.id ? "focus" : ""), visible: true, + tooltipText: bind(workspace, "lastClient").as((lastClient) => `Workspace ${workspace.id}${ lastClient ? ` - ${ + !lastClient.title.toLowerCase().includes(lastClient.class) ? + `${lastClient.get_class()}: ` + : "" + } ${lastClient.title}` : "" }`), child: new Widget.Icon({ className: "last-app-icon", visible: Variable.derive([