thblt / sway.el

Emacs ❤️ Sway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

frames-only-mode

tekakutli opened this issue · comments

There is also

If I may provide discussion, I'm rustled by how difficult it is to get Sway to behave like EXWM. I don't think Sway is the problem, it's almost every window manager that has a fundamental assumption: the idea that you create a window, the WM should find somewhere to put it. More specifically, it should put it somewhere, making room, without removing any currently visible window. I.e. there is no maximum amount of windows on a workspace. Long Emacs use has trained me to disagree with that paradigm and I could only today verbalize this as a reason why EXWM was so great.

If anyone knows a WM where you can set a fixed amount of windows per workspace, like Emacs, I want to hear about it. As far as I can see, until https://github.com/stumpwm/mahogany is ready, the best recourse is to hack Sway.

My goals:

  • Fixed amount of windows per workspace (for me, two): on init, just create two emacsclient frames.
  • When a new window is created, toss a previously visible one into the Sway scratchpad.
  • When a window dies for any reason, bring the most recent window out of the scratchpad. If the scratchpad is empty, create a new emacsclient instead.

If anyone knows a WM where you can set a fixed amount of windows per workspace

Late to the party, but XMonad is worth a look.