Replies: 1 comment 3 replies
-
Well, this is a spectrum of course. Awesome WM is quite extensive in how much is expressed in Lua. I guess it's a question of project goals. For niri this complete configurability isn't a goal, rather I focus on the scrollable tiling layout and try to make it work well. Exposing a big API like Awesome WM would be a ton of work, and a ton of unfortunate restrictions on what I can actually do in the internals. Plus, writing the logic in Rust catches some classes of errors at compile time. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
Looking at #391 I found myself dearly wishing niri (and more compositors/WMs generally) used actual code and an API for configs, something like AwesomeWM.
The
focus-next-or-first
feature is something I actually did in my AWM config even though it wasn't implemented in the WM itself, because the API and code config allowed me to do so.In pretend lua, it could look like this:
Of course I understand doing this rather than parsing a config like niri does now is a huge amount of work and a very different paradigm altogether, but I'm curious to read your thoughts about it?
Beta Was this translation helpful? Give feedback.
All reactions