Skip to content

hyprland/workspace: Use name instead of id for activate #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2025

Conversation

CMurtagh-LGTM
Copy link
Contributor

When using named workspaces Hyprland gives them a negative id so when we run workspace ${workspace.id} hyprland treats this as a relative id. So if you are on workspace 3 then go to workspace Web Quickshell will run workspace -1337 but Hyprland will rightfully complain that workspace -1334 does not exist. Running workspace ${workspace.name} seems to mitigate this issue.

See https://wiki.hypr.land/Configuring/Dispatchers/#workspaces

  • ID: e.g. 1, 2, or 3
  • Relative ID: e.g. +1, -3 or +100
  • workspace on monitor, relative with + or -, absolute with ~: e.g. m+1, m-2 or m~3
  • workspace on monitor including empty workspaces, relative with + or -, absolute with ~: e.g. r+1 or r~3
  • open workspace, relative with + or -, absolute with ~: e.g. e+1, e-10, or e~2
  • Name: e.g. name:Web, name:Anime or name:Better anime
  • Previous workspace: previous, or previous_per_monitor
  • First available empty workspace: empty, suffix with m to only search on monitor. and/or n to make it the next available empty workspace. e.g. emptynm
  • Special Workspace: special or special:name for named special workspaces.

Copy link
Member

@outfoxxed outfoxxed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me as long as both special workspaces and named but not id'd workspaces work correctly. Can you confirm that?

@CMurtagh-LGTM
Copy link
Contributor Author

I don't quite understand your grammar.
With my changes all three of special, named and id'd workspaces work.

@outfoxxed outfoxxed merged commit f90bef2 into quickshell-mirror:master Jul 24, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants