Replies: 1 comment 1 reply
-
Workspace idx is part of workspace-specific data, why should it be included on the window? That would require sending window update events for all windows down whenever an unrelated workspace disappears or is reordered. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to script a window switcher for Niri with a dmenu-like program, and I'd like to display the workspace index (the one shown by waybar, which appears as
idx
in the output ofniri msg -j workspaces
) next to the window title. I get the needed information by parsing the output ofniri msg -j windows
, but theidx
is missing: I know that I can use another command, likeniri msg -j workspaces | jq '.[] | select(.id == $my_id) | .idx'
, but I'm wondering why it wasn't included in the first place.Beta Was this translation helpful? Give feedback.
All reactions