Wayland desktop tooling is consolidating fast. Omarchy v4 ("Quattro") retired Waybar, Mako, and Walker in favor of a unified Quickshell shell (omarchy-shell), while community shells like DankMaterialShell and Noctalia have popularized Qt 6 / QML desktop shells across Hyprland and Niri.

Yet if you have a carefully tuned Waybar config.jsonc and style.css, migrating to Quickshell still means rewriting everything from scratch in QML. When I looked around GitHub, there wasn't a single automated Waybar-to-Quickshell converter.

So I built waybar2qs—a pure Python standard-library transpiler that converts your Waybar config and CSS into modular, readable Quickshell QML components, validates them with Qt 6 qmllint, and gives you an honest --report for everything that still needs manual QML polish.

waybar2qs

Transpile Waybar configurations (config.jsonc + style.css) into modular Quickshell (shell.qml) projects, accompanied by an honest migration audit report.

Why waybar2qs?

Wayland desktop ecosystems such as Omarchy, Noctalia, and DankMaterialShell are increasingly moving from Waybar + GTK CSS toward Quickshell (Qt 6 / QML) for native compositor IPC, smooth animations, and unified shell surfaces. Rebuilding an existing Waybar setup in QML from scratch means manually porting JSONC module layouts, @define-color palettes, interval/event scripts, and compositor bindings.

waybar2qs bridges that gap:

  • Parses Waybar config.jsonc (including // / /* */ comments, trailing commas, include directives, and multi-bar arrays).
  • Extracts mappable GTK CSS design tokens (@define-color, colors, radii, fonts, padding, margins, state styles) into a centralized Theme.qml singleton.
  • Generates modular QML components (qmldir, shell.qml, Theme.qml, and components/*.qml) tailored for Hyprland or Niri.
  • Produces an explicit migration report (…

Why a 1:1 Waybar -> Quickshell Converter Didn't Exist

Waybar and Quickshell live in completely different paradigms:

  • Waybar is a GTK-based bar configured declaratively with JSONC and styled with GTK CSS (@define-color, :hover, @keyframes, box-shadow).
  • Quickshell is a reactive QtQuick/QML Wayland shell framework built on layer-shell windows (PanelWindow), compositor IPC (Quickshell.Hyprland), and D-Bus/system service singletons (Pipewire, UPower, SystemTray, Networking, SystemClock, Process).

On top of the paradigm shift, Quickshell QML has several non-obvious gotchas if you're writing it by hand for the first time:

  1. PipeWire nodes are unbound by default. Reading or mutating Pipewire.defaultAudioSink.audio.volume silently fails unless you attach a PwObjectTracker:
PwObjectTracker { objects: Pipewire.defaultAudioSink ? [Pipewire.defaultAudioSink] : [] } 
  1. UPower battery percentage is normalized to 0.0–1.0. UPower.displayDevice.percentage isn't 0–100—you have to multiply by 100 for display.
  2. Process has no exitCode property. In Quickshell.Io.Process, exit status arrives via the onExited: (exitCode, exitStatus) => ... signal.
  3. Qt hex alpha is #AARRGGBB, not #RRGGBBAA. GTK CSS rgba(30, 30, 46, 0.85) or #1e1e2ed9 has to be flipped to #d91e1e2e for QML color properties.
  4. Qt 5 vs Qt 6 qmllint. On Arch/Omarchy, /usr/bin/qmllint can be Qt 5 (qmllint 1.0), which chokes on Qt 6 QML syntax—you need /usr/lib/qt6/bin/qmllint (with --uncreatable-type disable for PanelWindow).

How waybar2qs Works

Instead of dumping a monolithic 1,000-line shell.qml, waybar2qs runs a clean compiler pipeline:

  1. JSONC Parser (jsonc.py): Strips // and /* ... */ comments outside string literals (so URLs and shell commands stay intact), strips trailing commas, handles multi-bar arrays, and resolves "include" directives with cycle detection.
  2. GTK CSS Token Extractor & Auditor (css_parser.py): Resolves @define-color chains and functions (alpha(), shade(), lighter(), darker(), mix()), extracts bar geometry, radii, fonts, padding/margin, and state selectors (.active, .urgent, .muted, .warning, .critical) into a Theme.qml singleton.
  3. Modular QML Codegen (codegen.py): Emits qmldir, Theme.qml, shell.qml (ShellRoot -> Variants over Quickshell.screens -> PanelWindow + WlrLayershell), and only the components/*.qml files your bar actually uses:
Waybar Module Quickshell Backend Support
hyprland/workspaces Quickshell.Hyprland (Hyprland.workspaces) Native
clock Quickshell.SystemClock + Qt.formatDateTime Native
pulseaudio / wireplumber Quickshell.Services.Pipewire + PwObjectTracker Native
battery Quickshell.Services.UPower (UPower.displayDevice) Native
network Quickshell.Networking (WifiDevice / WiredDevice) Native / Partial
tray Quickshell.Services.SystemTray + IconImage + QsMenuAnchor Native
niri/workspaces Quickshell.Io.Process (niri msg --json + event-stream) Process-backed
custom/* Quickshell.Io.Process (exec, interval, return-type: json, clicks & scroll) Process-backed
Any other module StubModuleWidget.qml placeholder with original config metadata Stub

The Honest --report Flag

CSS animations, gradients, and pseudo-selectors don't translate 1:1 to QML. Instead of silently dropping them, waybar2qs --report gives you a line-by-line audit with concrete QML equivalents:

## Unsupported CSS Features Needing Manual QML Polish ### Animations & Transitions (2) - **Line 57** `#custom-update` (animation): `animation: pulse-update 2s ease-in-out infinite;` - QML hint: Use QML Behavior on <property> { NumberAnimation / ColorAnimation }. - **Line 76** `@keyframes pulse-update` (@keyframes): `@keyframes pulse-update { ... }` - QML hint: Use QML SequentialAnimation / NumberAnimation instead of CSS @keyframes. ### Pseudo-Selectors (1) - **Line 43** `#workspaces button:hover` (:hover): `#workspaces button:hover { ... }` - QML hint: Use QML HoverHandler or MouseArea { hoverEnabled: true } with Behavior on color. 

Quick Start

waybar2qs requires Python 3.10+ and has zero third-party runtime dependencies:

git clone https://github.com/Prateek-squadron/waybar2qs.git cd waybar2qs pip install -e . # Auto-discovers ~/.config/waybar/config.jsonc + style.css, # validates with Qt 6 qmllint, and prints the migration audit waybar2qs -o ./quickshell-bar --lint --report # Launch your new bar quickshell -p ./quickshell-bar 

You can also preview a conversion without writing files (--dry-run), export JSON reports (--report-json), or target a specific compositor (--compositor hyprland|niri).

What's Next?

Right now the transpiler covers the core Hyprland, Niri, Omarchy, and custom JSON script workflows (tested with 37 automated pytest cases, Qt 6 qmllint, and Quickshell 0.3.2 QML engine load checks). Next up are first-class native components for modules like mpris, backlight, bluetooth, and cpu/memory so fewer bars ever hit StubModuleWidget.qml.

If you're migrating from Waybar to Quickshell—or you have a gnarly config.jsonc / style.css edge case—drop a comment or open an issue on GitHub: Prateek-squadron/waybar2qs! Which Waybar modules do you rely on most?