SomeWM 2.1.0
I never wrote a release announcement for 2.0, so here's a tiny summary. That release rebuilt the C-to-Lua event boundary; 2.1 rebuilds the layout and rendering path. Together, they give state changes, layout and drawing an explicit order in the main loop.
I'm trying something just to be a bit extra. All the widget diagrams and animation demos in this post are captured from live SomeWM 2.1 widgets. Open “Show Lua” beneath a capture for the complete code to try it yourself.
New in 2.1
- A single layout and rendering pipeline. Dirty outputs are declared as Clay trees, solved in C, then handed to the renderer as commands. Bars, widgets and client frames follow the same path.
- Rounded client corners and frames that fit. Set
c.shape = 12for a 12-pixel radius. Titlebars share the corners, and decorations follow the size the application actually draws. - Patched wlroots. I added the rounded clipping that wlroots 0.20.2 lacked, including pointer hit-testing that respects the cut corners. SomeWM builds the patched version automatically, with rendering support in GLES2 and pixman.
- Composable animations. Clients, wiboxes, popups and widgets have animation policies. Eleven entrance effects include five new scale effects; combine a scale, a slide and a fade.
- A desktop inspector. Set
screen.primary.inspector = trueto browse the element tree and inspect solved boxes. Style it throughbeautiful.inspector_*. - Lock screen wallpaper. Set
theme.lockscreen_wallpaperandtheme.lockscreen_wallpaper_overlayfor a letterboxed image with an overlay. - Scrollable hotkeys help and menubar. Long lists scroll instead of paging.
Existing configurations need a migration check. SomeWM still loads your rc.lua and supports composition from stock wibox widgets. Custom widgets that implement their own draw, fit or layout methods are omitted, along with their children. Third-party widgets using those methods need updates. Read the upgrade guide before switching.