Wayland Without Losing bspwm — A Pragmatic Experiment on NixOS

I’m an XLibre contributor and a longtime X11 user.

I wanted to find out whether I could use Wayland without sacrificing my minimalist Unix workflow.

So I built a Hyprland environment on NixOS, kept my X11 setup intact, and measured the results.

Here’s what I learned.

1. Keeping the Workflow

My X11 desktop is built around XLibre, bspwm, sxhkd, dmenu, xterm and tmux. Each component has a relatively narrow responsibility. I use the keyboard to navigate windows and workspaces, launch programs through simple menus, and spend much of my time inside a terminal.

The question was whether I could retain that way of working with a Wayland compositor. I chose Hyprland because its Dwindle layout offered a starting point for reproducing the binary-space-partitioning behavior I was accustomed to in bspwm.

I configured ten workspaces, numbered I through X, preserved splits, explicit keyboard focus and a split ratio of 1.1. Windows have square two-pixel borders, no gaps, no animations, no blur and no shadows. There is no desktop status bar. The display runs at its native 1920 × 1080 resolution with a scale of 1.

2. Two Desktops, One NixOS System

Rather than replace the existing desktop, I separated the two environments into NixOS modules:

Both modules are imported into the system configuration. From a TTY, I can start XLibre and bspwm with startx, or start Hyprland with start-hyprland. These are alternative sessions, not two desktops running concurrently.

The X11 configuration retains its own startup files, hotkeys, launcher, terminal and customized ttyp0 bitmap font. Wayland has an independent startup path. The XLibre overlay does not replace XWayland, which remains a separate package.

This separation made the experiment practical. I could change the Wayland environment without dismantling the X11 desktop I already knew. NixOS generations also provide a system-level rollback path, although changes to unmanaged home-directory configuration require their own backups.

3. Replacing the Launcher

One of the most interesting discoveries was the application launcher. In my initial Hyprland session, hyprlauncher alone accounted for 89.94 MiB of proportional set size (PSS).

My existing dmenu workflow is based on a simple interface: send choices through standard input, read the selection from standard output and let a shell script decide what happens next. I wanted to retain that model.

I replaced hyprlauncher with mew, a Wayland menu that fits this approach. My existing scripts select dmenu under X11 and mew under Wayland. A packaged mew-run helper handles executable discovery through PATH and typed commands.

The keyboard shortcuts remain familiar: Super+Space opens my custom menu and Super+p opens the program launcher. When the menu is closed, no mew process remains resident. This does not mean the launcher consumes no memory while it is open; that was not measured.

4. xterm, foot and tmux

For the native Wayland terminal, I chose foot in standalone mode. tmux remains the center of my terminal workflow, so changing the terminal emulator did not require changing the way I organize shells and applications.

I adjusted tmux to recognize foot’s RGB capabilities while retaining the inner tmux-256color terminal identity. The clipboard commands now select wl-copy and wl-paste under Wayland and xclip under X11.

There was also a small color issue in Midnight Commander. Its default skin uses a named ANSI blue that differs between xterm and foot. Instead of changing foot’s palette for every application, I created an MC skin that restores the familiar #0000ee blue using truecolor.

The memory measurements were particularly interesting. The original xterm process used 10.55 MiB PSS. The final foot process used 10.67 MiB PSS. Both were approximately 10–11 MiB in these snapshots. Different fonts, terminal contents and session ages prevent a controlled efficiency comparison.

5. What the Memory Measurements Showed

I collected four live snapshots on November 30, 2026, on the same ThinkPad running NixOS unstable. The final system was generation 86, NixOS 27.05pre1132319.e713fda5ec9f, Linux 7.4.0-rc4, Hyprland 0.57.2 and XLibre 25.2.3.

I used smem 1.5 with root privileges and recorded USS, PSS and RSS. PSS is the primary metric here because it apportions shared resident pages among the processes using them. The following figures are in MiB, and the desktop subtotal excludes the browser.

sudo smem -H -c 'pid uss pss rss'

The final Hyprland desktop subtotal was 93.24 MiB lower than the initial launcher-equipped Hyprland snapshot, a decrease of 28.12%. It was still 161.60 MiB above the recorded XLibre/bspwm desktop. Including three additional helpers not separately recorded in the earlier samples brings the final desktop total to 239.96 MiB.

These figures describe actual running configurations, not a controlled benchmark of X11 against Wayland. The X11 subtotal included sxbar but did not separately record portals and startup helpers. Browser state, terminal content, session age and shared-memory attribution also differed. The launcher replacement is consistent with the lower desktop footprint, but the full difference cannot be attributed to that change alone.

Brave Origin dominated the combined memory totals. Its complete process tree varied considerably between samples, so the combined figures cannot establish that either display architecture is intrinsically more memory-efficient.

Both Brave and foot were confirmed as native Wayland windows through Hyprland’s IPC. XWayland was nevertheless resident and its memory was included in the Wayland desktop subtotal.

6. How It Feels in Daily Use

The window borders look more defined to me, and the rendering of foot and senpai looks excellent. I also like how naturally mew fits my existing menu workflow.

Those are personal observations about this particular configuration, not measurements of rendering quality or latency. I have not established performance or battery-life improvements. Locking, suspend/resume and the remaining desktop integration paths still need dedicated runtime validation.

Conclusion

The experiment answered my original question: I can use a native Wayland desktop while preserving much of the workflow I developed around bspwm.

There is a measurable memory cost in my Hyprland configuration compared with my original X11 desktop. But I can choose the components, remove unnecessary resident processes and keep the same shell-driven approach to everyday tasks.

I have not abandoned X11 or my work on XLibre. Both environments remain available on the same NixOS installation. For me, that freedom to experiment without giving up a working system is one of the most useful aspects of this setup.

The display protocol changed. Much of my Unix workflow did not.