Install
Moonswing ships as a classic snap, rebuilt nightly from main. It is the only supported
packaging; otherwise build from source.
You need:
- an amd64 machine;
- a Wayland compositor with
wlr-layer-shell— miracle-wm, Miriway or Sway (not GNOME); snapdandsudo.
Install or update
Section titled “Install or update”curl -fsSL https://raw.githubusercontent.com/miracle-wm-org/moonswing/main/install.sh | shThe script downloads the newest snap from the
nightly release and runs
snap install --classic --dangerous (it is not store-signed). Re-run it to update.
Start it with miracle-wm
Section titled “Start it with miracle-wm”curl -fsSL https://raw.githubusercontent.com/miracle-wm-org/moonswing/main/install.sh | sh -s -- --miracle-autostartThis adds Moonswing to startup_apps in ~/.config/miracle-wm/config.yaml, restarted if it
exits, from your next login. Your old config is kept as config.yaml.<timestamp>.bak; an
existing moonswing entry is left alone.
From inside your compositor session:
moonswingThe first start writes ~/.config/moonswing/config.toml. Change settings from Settings on
the bar, where they apply live; a hand edit to the file applies on the next start. See the
configuration reference.
Without miracle-wm
Section titled “Without miracle-wm”Features that drive miracle-wm’s IPC step aside on other compositors:
- the
workspacesandscratchpadmodules are left off the bar; - Alt+Tab and the scratchpad shortcuts are not registered, so the compositor keeps those keys;
- screenshots and recordings have no “window” mode;
- the shortcut sheet shows only the shell’s own keys. On a compositor without
ext-input-trigger-v1(Sway), no shell shortcut works.
Remove
Section titled “Remove”sudo snap remove moonswingLock screen PAM file
Section titled “Lock screen PAM file”A snap cannot write /etc/pam.d, so the lock screen authenticates through the system login
service instead. That works; unlock attempts are just logged as login. To install the
dedicated service, from a source checkout:
sudo make install-pamTroubleshooting
Section titled “Troubleshooting”-
no nightly snap for <arch>— amd64 only; build from source. -
No panels — the compositor lacks
wlr-layer-shell. -
Screen sharing offers no sources — the portal frontend caches its backends at start-up. Restart it:
Terminal window systemctl --user restart xdg-desktop-portal