Add swapactiveworkspacewith dispatcher #10188
Unanswered
enderbeatt
asked this question in
Feature requests - Window management
Replies: 1 comment
-
IMHO better fit for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature
This dispatcher adds the ability to swap the active workspace with specific workspace that is passed as an argument (similar to movetoworkspace dispatcher). The active workspace becomes the one that was passed as an argument.
There is a similar dispatcher called
swapactiveworkspaces
that swaps active workspaces between the monitors. The dispatcher I propose swaps workspaces only within the active monitor.Why would it be beneficial
Personally (pretty sure a lot of different people will relate), I have created a habit when I mostly use 2 workspaces (super + 2 for browser, super + 3 for work), and then use others sparingly (maybe super + 4 to open some more windows for the same task, win + 1 for utils, etc.).
The problem is that sometimes I have to swap between several tasks for prolonged time, which messes with my muscle memory, as I have to use workspaces other than my third one.
I think this feature solves the problem in a pretty easy way, as I can just move to the workspace with the task i currently want to do, and swap it with the third one.
Implementation
If you think that this feature is worth having, but you are busy with other things, I can try to implement this feature and send a PR. However, I am not familiar with Hyprland codebase, so if you are ok with me sending a PR, I have to ask a few questions I got while reading through the database:
CWorkspace
object through a weak pointer, but I am still not sure whether something will break if I do just change ID like that.workspace
,workspacev2
,moveWorkspace
), should I also emit them, or it's specifically for monitor-to-monitor transition?In any case, big thanks to y'all for work on Hyprland.
Beta Was this translation helpful? Give feedback.
All reactions