Skip to content

Overlays and system integration

open_emoji (Ctrl+Shift+E) opens a searchable emoji grid. Type to search, move with the arrow keys, press Enter to copy the highlighted emoji and close. Escape or a click on the backdrop closes without copying.

  • Search matches the name, keywords, category or the emoji itself (pizza, italian, food and 🍕 all find 🍕).
  • Matching is fuzzy: letters only need to appear in order (thmbs finds “thumbs up”; face joy finds “face with tears of joy”).
  • Exact matches rank first, then name over keywords over category.
  • Copying needs wl-copy from the wl-clipboard package. Without it, a notification says so.

To rebind it, see Shortcuts.

[calendar] configures the Calendar tab (click the clock): a month grid beside the local time and your world clocks. It shows events only once a Google or CalDAV account is signed in under Settings › Accounts and its calendars are switched on under Settings › Shell › Calendar.

[calendar]
week_start = "monday"
[[calendar.world_clocks]]
zone = "Europe/London"
[[calendar.world_clocks]]
zone = "Asia/Tokyo"
label = "HQ"
Key Type Default Description
week_start string "sunday" First day of the week: "sunday" or "monday"
  • Month, Week and Day switch the view (shown only while events are). +N more in a day cell opens that day.
  • Click an event for its details and buttons: Join (Meet, Zoom, Teams), Open in Google Calendar, and one per link in the description.
  • A calendar that can’t be read shows its reason and Retry above the grid; the others stay on screen.

Sign in to one or more CalDAV servers under Settings › Accounts (as for the Todo task list sync), then switch calendars on under Settings › Shell › Calendar.

[caldav]
calendars = ["https://dav.example.com/dav/calendars/me/personal/"]
show_in_calendar = true
refresh_minutes = 5
Key Type Default Description
calendars array of strings [] Calendar URLs to show, as Settings writes them; one list for every server
show_in_calendar bool true Show these calendars’ events on the Calendar tab
refresh_minutes int 5 Re-read interval while the tab is open (1–60); nothing is fetched while it is closed

If the server doesn’t expand recurring events, the shell handles simple daily, weekly, monthly and yearly rules; other rules show only the first occurrence.

One row per [[calendar.world_clocks]] entry. The tab edits these for you: + adds, ✕ removes, drag to reorder.

Key Type Default Description
zone string — IANA time zone, e.g. Europe/London. Required; an entry without one is ignored
label string the zone’s city Row name

An unknown zone shows “Unknown time zone” and can still be removed.

[notifications] stores the notification bell’s silence switch. The shell writes it when you use Silence notifications in the bell’s right-click menu or the switch in the notification panel. It survives a restart.

[notifications]
silenced = false
Key Type Default Description
silenced bool false Silence notifications

While silenced, notifications still arrive and collect in the panel, but the bell doesn’t shake, the chime doesn’t play and the floating card doesn’t appear. The bell shows a crossed-out icon. The chime itself is set under [modules.notifications].

[osd] configures the indicator shown above the bottom of every monitor when the volume, microphone volume or screen brightness changes, and the sound a volume change makes. The shell only watches these values; your existing key bindings still change them. Brightness needs a backlight under /sys/class/backlight.

[osd]
enabled = true
hide_delay_ms = 1500
margin = 96
volume_sound = "pop"
volume_sound_volume = 0.6
Key Type Default Description
enabled bool true Show the indicator (restart to apply)
hide_delay_ms int 1500 How long it stays up after the last change, in ms (min 100; restart to apply)
margin int 96 Distance from the bottom of the screen, in pixels (applies the next time it appears)
volume_sound string "pop" Sound when the output volume changes or is unmuted
volume_sound_volume float 0.6 Sound volume, 0–1

volume_sound accepts:

  • a built-in sound: pop, tick or blip;
  • a sound-theme name from your XDG sounds/ directories, e.g. audio-volume-change;
  • a path to an audio file (~/ is expanded);
  • none, off or silent.

The sound plays at the new level, even with enabled = false; muting is silent. Sound keys apply live, but if the indicator and the sound were both off at start-up, restart to turn either on. Settings › Shell › Volume & Sound previews the sound and reports one it can’t find.

[keyboard] holds your input sources: the keyboard layouts the Keyboard Layout module and Settings › Keyboard offer to switch between, in order.

[[keyboard.sources]]
layout = "us"
[[keyboard.sources]]
layout = "de"
variant = "nodeadkeys"
Key Type Default Description
layout string none xkb layout code (us, de, latam); required
variant string "" xkb variant code; empty is the layout’s default
  • A source with no layout is skipped, and an exact duplicate is listed once.
  • With no sources key at all, the shell fills it in from the machine’s current layouts the first time the module or Settings › Keyboard is shown. An empty list (sources = []) is left alone.
  • Settings › Keyboard adds, removes and reorders sources. Edits apply at once.
  • Switching to a source changes the layout for the whole system, through systemd-localed: it may ask for administrator approval, and it keeps the machine’s keyboard model and options. Miracle WM applies the new layout at once; other compositors may keep their own keyboard setting.

[power] sets what the machine’s power button does. By default it shows the power menu (Lock, Log Out, Sleep, Restart, Shut Down) instead of powering off.

[power]
key_action = "menu"
inhibit_logind = true
Key Type Default Description
key_action string "menu" What a press does (below)
inhibit_logind boolean true Stop systemd-logind acting on the key while the shell handles it
key_action Effect
"menu" Show the power menu. Escape or a click outside cancels; Enter picks the highlighted action (Shut Down at first)
"shutdown" Power off immediately
"reboot" Restart immediately
"suspend" Suspend
"lock" Lock the session
"logout" End the session
"none" Do nothing; logind handles the key as usual

Also accepted: off/poweroff (shutdown), restart (reboot), sleep (suspend), log_out/logoff (logout), dialog/power_menu (menu), ignore/disabled/"" (none). An unknown value falls back to "menu" and is logged.

  • Both keys apply live (Settings › Shell › Power Button). The key binding itself, [shortcuts] power_button, needs a restart.
  • The bar’s power button and open_power_menu always open the menu, whatever key_action says.
  • With inhibit_logind, the shell holds logind’s handle-power-key lock only while it actually owns the key, and drops it on exit or crash. A long press is left to logind.
  • Turn inhibit_logind off only if logind.conf already has HandlePowerKey=ignore; otherwise logind powers off behind the menu.

If the button does nothing:

  • Check the log for input-trigger: "moonswing.power-button" owned at start-up; another client may own the key instead.
  • If your power key sends a different keysym, bind the physical key: power_button = "code:116" (evdev KEY_POWER).

[polkit] makes the shell the session’s polkit agent: the “Authentication required” dialog shown when an application asks for administrator rights. Without an agent, those requests are refused silently. Miracle WM ships none.

[polkit]
enabled = true
max_attempts = 3
Key Type Default Description
enabled boolean true Register as the polkit authentication agent
max_attempts int 3 Wrong passwords allowed before the dialog gives up (1–5)
  • Read at start-up; restart the shell to apply.
  • Escape, a click outside, or Cancel denies the request.
  • If another agent is already registered when the shell starts, the shell leaves it alone. Set enabled = false if your agent starts after the shell.
  • With enabled = false and no other agent, nothing can ask for administrator rights.

If prompts do not appear:

  • Look for polkit: registered as the authentication agent for session <id> in the log.
  • The password check needs polkit-agent-helper-1, part of polkit (polkitd on Debian/Ubuntu, polkit on Fedora, Arch, openSUSE). The dialog says if it is missing.
  • A logind session is required: echo $XDG_SESSION_ID must print something.

The [control] section lets other programs drive the shell over the session bus (org.moonswing.Shell). moonswing-mcp, the MCP server you point an AI agent at, uses it; AI agents (MCP) covers setting one up.

[control]
enabled = true
screenshots = true
Key Type Default Description
enabled boolean true Answer org.moonswing.Shell on the session bus. Applies on the next start
screenshots boolean true Let callers take a picture of a screen. Applies at once

With enabled = false the agent’s shell tools (themes, launcher, todo board, timers, notifications, screenshots) stop working; its window-manager tools still work, since they talk to the compositor directly.

[screenshare] configures the shell’s xdg-desktop-portal ScreenCast backend. When an application asks to share your screen (a browser, a video call, OBS), the shell shows a picker with live previews of every monitor and window. Nothing is shared until you pick a source and press Share; Escape or a click outside denies the request. Frames go to the application as a PipeWire stream.

[screenshare]
enabled = true
preview_fps = 10
max_fps = 0
cursor = "app"
Key Type Default Description
enabled bool true Serve ScreenCast; set false to leave it to another backend such as xdg-desktop-portal-wlr (restart to apply)
preview_fps int 10 Frame rate of the picker’s previews (1–60)
max_fps int 0 Cap on the shared stream’s frame rate; 0 follows the monitor’s refresh rate (restart to apply)
cursor string "app" Pointer in the stream: "app", "always" or "never"; see The pointer

Applications ask for the pointer to be hidden, painted into the frames, or sent as metadata for the application to draw itself. Chrome, Chromium and Electron apps always ask for metadata.

  • "app" gives each application what it asked for.
  • "always" paints the pointer into every frame. Use it for a recorder that hides the pointer and can’t draw its own (for example Recordly; turn off its own pointer to avoid seeing two).
  • "never" keeps the pointer out.

cursor is read each time sharing starts. Metadata needs compositor support (ext-image-copy-capture-v1 cursor sessions, which miracle-wm has); without it those applications share with no pointer.

  • A compositor with ext-image-copy-capture-v1 (miracle-wm built against MirAL 5.6 or newer). Without it the feature turns itself off and logs why.

  • PipeWire 1.0 or newer.

  • The portal files. make install (or make install-portal) writes:

    • ~/.local/share/xdg-desktop-portal/portals/moonswing.portal
    • ~/.config/xdg-desktop-portal/mir-portals.conf, only if it doesn’t exist; otherwise it prints the lines to add

    Then run systemctl --user restart xdg-desktop-portal once.

  • The snap does this for you, system-wide on install and per user on first run, and restarts xdg-desktop-portal. snap remove removes them but leaves the per-user *-portals.conf. With enabled = false the snap registers nothing.

Existing files are never edited. If one of your ~/.config/xdg-desktop-portal/*-portals.conf sends ScreenCast elsewhere, it wins; the snap logs which file. To use the shell, set:

[preferred]
org.freedesktop.impl.portal.ScreenCast=moonswing

The shell must be running for screen sharing to work; sharing never starts it.

[input_capture] configures the shell’s xdg-desktop-portal InputCapture backend. It lets keyboard-and-mouse sharing apps such as DeskFlow or Input Leap share this computer’s keyboard and mouse with other computers. The first time an application asks, the shell names it and waits for Allow; Deny, Escape or a click outside refuses.

Once allowed, the application sets barriers on your screen edges. Push the pointer through one and your input goes to the application until it hands it back.

Super+Shift+Escape always takes your keyboard and mouse back and stops that application capturing until it asks again.

[input_capture]
enabled = true
Key Type Default Description
enabled bool true Serve InputCapture (restart to apply)
  • libeis (libeis1 on Debian and Ubuntu 24.04+; the snap includes it).

  • A compositor with wlr-layer-shell, relative-pointer and pointer-constraints. The shell logs any that are missing.

  • The same portal files as Screen Sharing. If you keep your own *-portals.conf, add under [preferred]:

    org.freedesktop.impl.portal.InputCapture=moonswing

    The snap adds this line to confs it wrote itself, not to yours. [screenshare] enabled = false also stops the snap registering input capture.

  • While barriers are armed, a one-pixel strip along each armed edge takes clicks meant for what’s under it.
  • Barriers must be on outer screen edges; edges between two of your monitors are refused.
  • Plugging or unplugging a monitor ends a capture, and the application must set its barriers again.
  • Locking the screen ends a capture.