Personal config for MangoWM — wlroots-based Wayland compositor.
Keybinds:
Print— full screenSuper+Shift+S— region select
grimcaptures the screen (withslurpfor region) → saves to a temp filewl-copycopies to the Wayland clipboard (native Wayland apps)xclipcopies to the X11 clipboard (XWayland apps like rootapp)swappyopens the editor for annotations
XWayland apps (e.g. rootapp, Electron apps, WPS Office) can only read the X11 clipboard. wl-copy alone puts data only on the Wayland clipboard — invisible to XWayland. KDE/GNOME bridge these automatically; wlroots compositors don't. Writing to both clipboards ensures paste works everywhere.
| Package | Purpose |
|---|---|
grim |
Screenshot capture (wlroots) |
slurp |
Region selection |
wl-clipboard |
Wayland clipboard (wl-copy/wl-paste) |
swappy |
Screenshot editor/annotator |
xclip |
X11 clipboard bridge for XWayland |
| Distro | Command |
|---|---|
| Arch | sudo pacman -S grim slurp wl-clipboard swappy xclip |
| Fedora | sudo dnf install grim slurp wl-clipboard swappy xclip |
| Debian/Ubuntu | sudo apt install grim slurp wl-clipboard swappy xclip |
| NixOS | Already included in system packages |
| openSUSE | sudo zypper install grim slurp wl-clipboard swappy xclip |
Note:
swappymay not be in older Debian/Ubuntu repos — build from source.
If you use NixOS, scripts must use #!/usr/bin/env bash (not #!/bin/bash) — NixOS has no /bin/bash.
- caelestia-shell-mango — Caelestia shell integration