You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get xmonad-like workspace behavior so this is exactly what I was looking for, thanks for making it public.
For your information, you could make your parsing more robust by using the json output of hyprctl, combined with jq: https://stedolan.github.io/jq/manual/
For instance, the following will display the id of the currently focused monitor:
hyprctl monitors -j|jq '.[]|select(.focused)|.id'
The text was updated successfully, but these errors were encountered:
I actually rewrote this script using jq a few months back, but jq is seriously slow, especially when running multiple queries back-to-back, which made workspace switching noticeably sluggish. Unless I can find a faster alternative to jq for parsing json, or figure out how to streamline the script to require fewer jq queries (I have some ideas), I will be sticking with the current grep+awk method for the time being and just dealing with the occasional breakage.
Honestly this would probably be better implemented as a plugin, but I don't have the C++ knowledge to make that happen.
Hi,
I just looked at your script here:
hyprland-dotfiles/hypr/scripts/workspace
Line 4 in 816a053
(referenced from hyprwm/Hyprland#747 (comment))
I'm trying to get xmonad-like workspace behavior so this is exactly what I was looking for, thanks for making it public.
For your information, you could make your parsing more robust by using the json output of hyprctl, combined with
jq
: https://stedolan.github.io/jq/manual/For instance, the following will display the id of the currently focused monitor:
The text was updated successfully, but these errors were encountered: