refactor(ags): use tooltipText prop for workspaces

This commit is contained in:
matt1432 2023-09-20 16:07:17 -04:00
parent ed1b9272a1
commit ecd161ba8b

View file

@ -8,9 +8,7 @@ const Workspace = ({ i } = {}) =>
Revealer({ Revealer({
transition: "slide_right", transition: "slide_right",
child: EventBox({ child: EventBox({
setup: widget => { tooltipText: `${i}`,
widget.set_tooltip_text(`${i}`);
},
onPrimaryClickRelease: () => execAsync(`hyprctl dispatch workspace ${i}`).catch(print), onPrimaryClickRelease: () => execAsync(`hyprctl dispatch workspace ${i}`).catch(print),
child: Box({ child: Box({
className: 'button', className: 'button',