engstrand-config / dwl-guile

Dynamic tiling Wayland compositor configurable in Guile Scheme, based on dwl and libguile - now with a REPL!
Other
96 stars 5 forks source link

layouts in gule #43

Open crypt17 opened 3 weeks ago

crypt17 commented 3 weeks ago

I was wondering if you can considered allowing for the setup of layouts from guile code.

I feel that this feature would allow many things that are now patches to the C code base to be easily implemented

Frewacom commented 3 weeks ago

Agreed, it would be nice. However, there is quite a lot of work needed to allow for such scripting capabilities.

crypt17 commented 3 weeks ago

I was thinking of something like a function layout_custom(monitor m, char option)

This would just take a monitor and a selector.

It would then compute how many windows needed to be laid out and pass that through to a central guile procedure which would return a list of dimensions so that the wndows could then be laid out.

I do not know the code base well enough yet to know if this would work.