hyprland-workspaces-0.0.6 is not a library.
hypr-helper
An application that listens to the Hyprland UNIX socket for changes and returns chosen properties (example: workspace information, active window name).
Prerequisites
You should be running Hyprland, therefore having hyprctl.
Why
Writing this helped me cut down RAM usage for getting workspace information by almost 600%! (12MB -> 2.4MB) and of course barely any CPU usage.
How to install
You can install this by cargo or building the project yourself
# Using cargo
# Cloning and building