Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Cookbook

Complete widgets to copy, simplest first. Each recipe is a whole shell.lua: save it in a config directory, run mantle check -c <dir>, then start the shell. New to Mantle? The introduction builds a first bar step by step.

RecipeBuildsNew since the one above
Clock barA top bar with a centred clock that toggles to the date on click, with a tooltipcomputed, named state, a hover tooltip
Battery indicatorA bar pill with charge icon, percentage, time-left tooltip and a low-battery warningon_change, process.detach
Volume OSDA card that slides in with an icon and level bar whenever the volume changespulse, animate with from, monitor = "Active"
WorkspacesPer-monitor workspace pills for Hyprland and niri, with wheel switching and Hyprland special workspacesPer-output child, keyed list, capability actions
Lock screenA per-monitor lock screen with clock, password field, error hint, fade and idle locklock, a secure field, an idle threshold
Power menuA full-screen menu to lock, suspend, log out, restart or power off, with confirmationA full-screen overlay closed by an outside click
Notification popupsA corner stack of notification cards with formatted bodies, action buttons and dismissText runs, animate.exit, nested buttons
App launcherA search overlay that fuzzy-ranks installed apps, with keyboard selectiontextfield, fuzzy, scroll:reveal
System tray with menuTray icons with click, wheel and a right-click dropdown menu with submenusA grabbing popup, a flattened menu tree
Media playerA now-playing pill and a card with cover art, a seekable progress bar and controlsExtrapolated position, on_drag

To combine recipes, keep one bar panel and put each recipe’s bar widgets in its row. Copy every other surface across as it is.