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

feature request #261

Closed
fhdhsni opened this issue May 24, 2017 · 4 comments
Closed

feature request #261

fhdhsni opened this issue May 24, 2017 · 4 comments

Comments

@fhdhsni
Copy link

fhdhsni commented May 24, 2017

Today I switched from i3wm to exwm. So far it's been awesome. Thanks indefinitely.
I missed a few features that might already exist but I'm not aware of.

  1. Assigning apps to particular workspaces. In i3wm I can do something like assign [class="(?i)mpv"] $workspace3
    UPDATE: For 👆 got my answer here

  2. Switch back and forth between two workspaces. Say I switch from workspace 1 to workspace 3 via s-3. If I press s-3 again it should switch back to workspace 1 (so I don't need to remember where I was).
    UPDATE: For 👆 got my answer here.

  3. I'm using exwm-workspace-switch-to-buffer to find already opened applications. My problem is, say I'm in workspace 1, and Firefox is open in workspace 3, if I call exwm-workspace-switch-to-buffer for firefox, it brings Firefox to workspace 1 but I want it to switch to workspace 3 where Firefox resides and leave the workspace 1 intact. In i3wm I can do this by something like for_window [class="(?i)firefox"] focus

Thanks again.

@ch11ng
Copy link
Owner

ch11ng commented May 29, 2017

To implement the first one you'll have to add a function to exwm-manage-finish-hook to detect the application (there's an example in the wiki) and switch to a certain workspace (with exwm-workspace-switch).

As for the third one, what should EXWM do when the user specifies a normal Emacs buffer? It can be displayed on multiple workspaces.

@fhdhsni
Copy link
Author

fhdhsni commented May 29, 2017

I guess the desired behavior would be not switching workspaces in case of normal Emacs buffers (that is to keeping the current behavior).

@ch11ng
Copy link
Owner

ch11ng commented May 30, 2017

I've implemented the third one in 19515dc. Just make sure exwm-layout-show-all-buffers is nil.

@fhdhsni
Copy link
Author

fhdhsni commented May 30, 2017

Thank you so much. It's really nice.

@fhdhsni fhdhsni closed this as completed May 30, 2017
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

2 participants