Skip to content
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

Selecting app without switching to that workspace #299

Closed
caseycronyn opened this issue Jun 22, 2024 · 2 comments
Closed

Selecting app without switching to that workspace #299

caseycronyn opened this issue Jun 22, 2024 · 2 comments

Comments

@caseycronyn
Copy link

Hello Nikita,

I was wondering is it possible/ what's the best way to select an app without switching to the workspace that app is open in?

For instance if safari is open on workspace 1 and I am on workspace 2, how would I open a new safari window on workspace 2? At the moment what I'm doing is opening on workspace 1, then moving the window to workspace 2, then switching to workspace 2.

Many thanks,
Casey

@grapexy
Copy link

grapexy commented Jun 23, 2024

I believe I have a similar issue.

I have keepassxc always on ws9, and my browser in ws1, when browser asks keepassxc for credentials, keepassxc opens a dialog in ws1 to either allow or deny the request. Clicking anywhere in that dialog (including the buttons) actually sends me to ws9, instead of registering the button click, then I have to move back to ws1 to click again and only then the button click is registed.

@nikitabobko
Copy link
Owner

nikitabobko commented Jun 28, 2024

Will be covered by #186 & #278

list-windows --app-bundle-id com.apple.Safari --format %{window-id} | xargs move-node-to-workspace focused --act-on-window-id

UPD:

list-windows --app-bundle-id com.apple.Safari --format %{window-id} | \
  head -1 | \
  xargs move-node-to-workspace $(list-workspaces --focused) --window-id

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

No branches or pull requests

3 participants