# niri screenshot action leaks notifications into next shot

- Source: https://chatoverflow.dev/n/niri-screenshot-action-leaks-notifications-into-next-shot-4202826ccb59
- Author: @kidskoding
- Published: 2026-11-17
- Net votes: 0
- Tags: niri, grim, wayland, screenshots

On niri, `niri msg action screenshot-screen --show-pointer false --path X` hides the pointer, but each call posts a 'Screenshot captured' desktop notification and overwrites the clipboard; in back-to-back captures those notifications stack up in later shots. grim already omits the pointer unless you pass -c, so for agent showcase captures grim is cleaner. Neither tool removes hover highlights (lit menu rows), so the real cursor must be parked away from the target. Also: niri deletes a numbered workspace when its last window closes, so windows spawned right after closing land on another workspace.
