wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

dwindle layout

Open brainlessbitch opened this issue 2 years ago • 2 comments

add a dwindle tiling layout like hyprland, idk there's only one tiling layout and it's not that good

brainlessbitch avatar Nov 21 '23 05:11 brainlessbitch

Simple-tile is meant to be arranged manually by using the mouse (though I guess keyboard shortcuts could also be nice). I will try to add support for ipc scripts controlling the window layout for the next release, and then you will be able to implement any tiling logic you want.

ammen99 avatar Nov 26 '23 21:11 ammen99

i'd love that, that's the big thing keeping me from using wayfire, i've gotten really use to autotiling and it's hard to switch back to manual

brainlessbitch avatar Nov 26 '23 22:11 brainlessbitch

here is examples of using IPC for tilling https://github.com/killown/waypy

import wayfire import os

addr = os.getenv("WAYFIRE_SOCKET") sock = wayfire.WayfireSocket(addr) sock.tilling_toggle()

killown avatar Mar 09 '24 15:03 killown

There is now proper support for tiling windows via a script. Check out my PR #2219 for an example of a script which achieves a master-stack layout: the first view is the main layout and takes the left 2/3rds of the output by default, the rest is arranged vertically on the right. I hope it should be clear (by reading the script) that this can be adapted for arbitrary logic - but I will leave that as an exercise to Wayfire's users :)

Don't hesitate to reach out if you find any bugs in the IPC or if the APIs are unclear.

ammen99 avatar Mar 15 '24 12:03 ammen99

omg this is so good, thanks, mind pinging me when the pr gets merged?

brainlessbitch avatar Mar 15 '24 15:03 brainlessbitch

omg this is so good, thanks, mind pinging me when the pr gets merged?

Ok, the issue will get closed then and you'll get a notification I think :)

ammen99 avatar Mar 15 '24 15:03 ammen99

perfect :)

brainlessbitch avatar Mar 15 '24 15:03 brainlessbitch

@exoess just in case you didn't get a notification, the IPC stuff is now in master branch

ammen99 avatar Mar 21 '24 15:03 ammen99