Skip to main content

SomeWM 2.1.0

· 16 min read

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 = 12 for 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 = true to browse the element tree and inspect solved boxes. Style it through beautiful.inspector_*.
  • Lock screen wallpaper. Set theme.lockscreen_wallpaper and theme.lockscreen_wallpaper_overlay for 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.

SomeWM 1.4.0 - Stable Release

· 4 min read

I first installed linux on a personal machine in 2014. Linux mint. It was absolutely glorious in all its janky ways. I used it stock for about 2 or 3 years, until I stumbled upon /r/unixporn and saw some things that blew my mind. I had never considered that I could configure my setup in a way that was truly unique to my machine.