RevertWorkspace - bakkeby/dusk GitHub Wiki
A client can be set to start on a specific workspace using client rules, e.g. here QtPass is to start on workspace 3:
{ .class = "QtPass", .workspace = "3", .flags = AttachMaster|EnableWorkspace|RevertWorkspace },
The EnableWorkspace
flag tells the window manager to automatically enable workspace 3 in addition
to the workspace(s) already being viewed when QtPass starts. Alternatively the SwitchWorkspace
flag would switch to that workspace when the window opens.
Now the idea in this context is that the program will only be used for a short amount of time, e.g. to look up a password, then it will be closed as soon as we have the required information. For practical reasons it may be convenient if it would automatically go back to the workspace you were on so that you can resume your work.
If a client has the RevertWorkspace
flag set then the workspace that was active when the window
opened will be restored when said window closes.
If the workspace the client starts on is already visible then the RevertWorkspace
flag has no
effect.
Also see: