Skip to content

QML reference

github-actions[bot] edited this page Dec 2, 2026 · 10 revisions

QML reference

waku exposes QML modules for shells. This is an introduction to the main types and where to find their complete property metadata. The current development version can differ from a release.

Modules

Import Purpose
waku Shell windows, panels, layout, themes, shortcuts and other engine types.
waku.widgets Built-in widgets such as Clock, Volume, Battery and Workspaces.
waku.services Data sources and actions used by widgets and shells.
Quickshell and its submodules Compatibility types for ported Quickshell shells.

Widget and service names can overlap. Use import waku.services as S and refer to a service as S.Name when also importing waku.widgets.

S.Battery exposes energy and energyCapacity in Wh, energyAvailable, changeRate in watts, and healthPercentage when healthSupported is true. Values are zero when unavailable. The same readings are available on Quickshell.Services.UPower.UPower.displayDevice.

S.Network.refresh() scans for Wi-Fi networks. connectTo(ssid) connects to a saved or open network; connectTo(ssid, password) supplies a passphrase for a secured network. Both return whether a connection was started. wifiConnectionFailed(ssid, reason) reports asynchronous failures: invalidCredential, networkNotAvailable, timeout, accessRevoked, unsupportedAuthenticationProtocol or failure. Scan entries include hidden, enterprise and owe; use connectHidden(ssid, password) for a hidden scan result and Windows Settings for new enterprise networks. disconnectWifi(ssid) and forgetWifi(ssid) report completion through wifiOperationFinished(operation, ssid, success). connectivity is Windows' connectivity level (0 none, 1 local, 2 constrained, 3 internet), a hint rather than proof of a captive portal. refreshConnectivity() refreshes it without a scan. Windows may require location permission for Wi-Fi scanning and connection.

S.Battery.refreshHistory() asynchronously reads the Windows battery report. When available, batteryHistory holds 24 hourly columns and the rolling-day activeSeconds and usedPercent. activeSeconds is Windows' active-state time, not necessarily screen-on time. Missing or estimated chart readings are marked by their level and measured values.

The built-in widgets include ActiveLayout, Battery, Bluetooth, Calendar, Clock, ControlCenter, Cpu, GitHub, Media, Memory, Notifications, Taskbar, Tray, Volume, WallpaperGallery, Wallpapers, Wifi and Workspaces. Their QML files in the deployed modules\waku\widgets folder show their properties and usage examples.

Common types

  • ShellRoot: root of a shell; holds panels and other objects.
  • Panel: builds a panel per matching screen. Set screens, edge, thickness, exclusive, backdrop, background, enabled and content. Its edges are Panel.Top, Bottom, Left and Right. exclusive defaults to false.
  • PanelLayout: arrange items in start, center and end; adjust spacing, padding, startPadding and endPadding. For island backgrounds it also accepts startFill, centerFill and endFill.
  • ThemeSpec: root of theme.qml; set properties such as text, surface, accent, fontFamily, fontSize, radius, padding and spacing. Built-in widgets read Theme.
  • Clock: built-in widget with format, tooltipFormat and calendar.
  • GlobalShortcut: use name and optionally keys; handle onPressed and onReleased.
  • IpcHandler: declare a target, enabled and QML functions callable with wakuc call.
  • PanelWindow, FloatingWindow, Region and Variants: lower-level window, input and multi-screen building blocks.

See Customization for runnable examples and shell author notes for Windows and Quickshell differences.

Docked panels on the Top or Overlay layer auto-hide while a fullscreen application uses their monitor on the current desktop. A maximized window without a title bar that covers the monitor counts as fullscreen. The bar keeps its work-area reservation while fullscreen is active, so leaving fullscreen does not resize the desktop again. Other maximized windows also hide docked panels and release their work area when waku's tiler is active; with the tiler disabled, maximizing does not affect the panel. Set ShellRoot.maximizedAutoHideEnabled: false to keep docked panels visible and their work area reserved on maximize without disabling the tiler. It defaults to true. To exclude only specific apps, set ShellRoot.maximizedAutoHideExcludedApps to executable filenames including .exe. The list defaults to empty and matches exact filenames case-insensitively; it does not accept paths or wildcards. If waku cannot read a window's executable name, no exclusion applies. Neither setting changes fullscreen or borderless-fullscreen behavior or PanelWindow.screenFullscreen. For example:

ShellRoot {
    maximizedAutoHideExcludedApps: ["msedge.exe", "code.exe"]
    // Or disable maximized auto-hide for every app:
    // maximizedAutoHideEnabled: false
    // ...
}

By default, panels stay hidden for fullscreen, keeping the fullscreen application above them. Set ShellRoot.fullscreenRevealApps to executable filenames including .exe to allow edge reveal for those apps, for example:

ShellRoot {
    fullscreenRevealApps: ["thefinals.exe"]
    // ...
}

While a maximized window is auto-hiding panels, move the pointer to the panel's screen edge to reveal it; it hides again when the pointer leaves the bar and its popup. The revealed bar overlays the window without changing the work area. This also applies to ported PanelWindow shells; no theme changes are needed.

For shells that draw a bar inside a full-screen overlay, PanelWindow.screenFullscreen is a read-only waku extension. It reports a fullscreen or maximized application on that window's monitor and current desktop, regardless of the panel's anchors, layer or visibility. Bind the bar's content and input regions to this state; the host does not hide an entire full-screen overlay because it can also contain notifications and other panels. Such shells handle their own edge reveal. Ordinary docked panels get automatic hiding and reveal from the host.

Complete type and property metadata

The built and deployed module folders contain qmldir, .qmltypes files and QML source for tools and editors. They describe the types, properties, signals and methods of that build:

  • In a deployed distribution: modules\waku and its services and widgets folders.
  • In a source build: build\<preset>\qml_modules, including the Quickshell modules.

For the implementation and examples, see the module and type inventory, Quickshell module map and sample configurations. The metadata for the installed build is preferable to a web page when APIs differ by version.

Clone this wiki locally