lbonn / rofi

Rofi: A window switcher, run dialog and dmenu replacement - fork with wayland support
Other
943 stars 37 forks source link

[REQUEST] docs for window switching in sway #3

Closed markstos closed 2 years ago

markstos commented 4 years ago

The docs say "Window mode when running in Wayland mode." doesn't work "though it can be emulated in dmenu mode on some compositors (ie: Sway IPC)"

How does the emulation with dmenu mode work on Sway? What's the syntax to use it. It could be helpful to add that to the docs.

digital-mystik commented 3 years ago

I was curious about this as well. I saw lbonn's gist (https://gist.github.com/lbonn/89d064cde963cfbacabd77e0d3801398) that enables window switching, but am not sure if that is something that can be implemented directly. I can run it as a script separately, but it would definitely by a nice addition to the base package.

lbonn commented 3 years ago

@digital-mystik It should be possible by using wlr-foreign-toplevel-management (see comment) but I'm not planning to work on that at the moment. If you're interested, you can have a look.

I'm using https://github.com/lbonn/i3-focus-last#menu-mode now which also sorts the entries by focus order as a bonus (not sure if this can be achieved using the protocol).

lbonn commented 2 years ago

I've updated the README to refer to i3-focus-last