13 lines
382 B
JavaScript
13 lines
382 B
JavaScript
![]() |
import { Hyprland } from "../imports.js";
|
||
|
|
||
|
export const getFocusedWorkspace = (self) =>
|
||
|
self.children.forEach((btn) => {
|
||
|
btn.className =
|
||
|
btn.attribute.index === Hyprland.active.workspace.id
|
||
|
? "focused"
|
||
|
: "";
|
||
|
btn.visible = Hyprland.workspaces.some(
|
||
|
(ws) => ws.id === btn.attribute.index,
|
||
|
);
|
||
|
});
|