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

Switch to tile by key #2317

Open
Nosirus opened this issue Apr 6, 2024 · 3 comments
Open

Switch to tile by key #2317

Nosirus opened this issue Apr 6, 2024 · 3 comments
Labels
easy Issues that do not require knowledge about the whole codebase enhancement good first issue low-priority Issues that aren't likely to be resolved soon PRs-welcome Issues which are unlikely to be fixed unless someone sends a PR

Comments

@Nosirus
Copy link

Nosirus commented Apr 6, 2024

I wonder if it was possible with IPC to switch to tile mode or vice versa by pressing a key?

for example being able to switch between the two modes or even remove the tile window decoration

@killown
Copy link
Contributor

killown commented Apr 6, 2024

do you mean that:

from wayfire.ipc import sock
sock.press_key("W-KEY_T")

@ammen99
Copy link
Member

ammen99 commented Apr 7, 2024

@Nosirus Yes you can do that:

  • First call simple-tile/get-layout and window-rules/get-focused-view . If focused view is in the layout, you can set a new tiling layout which doesn't contain the focused view, and it will be untiled.
  • If the view is not in the tiled layout, then you can set a new tiled layout with the view added, this will tile it.

Of course we could also make the binding itself ipc activatable, but this is much more flexible because you can also say exactly how the view should be added to the tiled layout.

@Nosirus
Copy link
Author

Nosirus commented Apr 7, 2024

I think someone other than me might be interested in switching easily.
At the moment I haven't yet understood how the plugins really work but I will try when I have more time.

Thanks for your help :)

@ammen99 ammen99 added enhancement easy Issues that do not require knowledge about the whole codebase good first issue low-priority Issues that aren't likely to be resolved soon PRs-welcome Issues which are unlikely to be fixed unless someone sends a PR labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Issues that do not require knowledge about the whole codebase enhancement good first issue low-priority Issues that aren't likely to be resolved soon PRs-welcome Issues which are unlikely to be fixed unless someone sends a PR
Projects
None yet
Development

No branches or pull requests

3 participants