Repository navigation
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.
| 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.
-
ShellRoot: root of a shell; holds panels and other objects. -
Panel: builds a panel per matching screen. Setscreens,edge,thickness,exclusive,backdrop,background,enabledandcontent. Its edges arePanel.Top,Bottom,LeftandRight.exclusivedefaults to false. -
PanelLayout: arrange items instart,centerandend; adjustspacing,padding,startPaddingandendPadding. For island backgrounds it also acceptsstartFill,centerFillandendFill. -
ThemeSpec: root oftheme.qml; set properties such astext,surface,accent,fontFamily,fontSize,radius,paddingandspacing. Built-in widgets readTheme. -
Clock: built-in widget withformat,tooltipFormatandcalendar. -
GlobalShortcut: usenameand optionallykeys; handleonPressedandonReleased. -
IpcHandler: declare atarget,enabledand QML functions callable withwakuc call. -
PanelWindow,FloatingWindow,RegionandVariants: 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.
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\wakuand itsservicesandwidgetsfolders. - In a source build:
build\<preset>\qml_modules, including theQuickshellmodules.
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.