Install
Install with PiG
pig install npm:@saburto/pi-notify-fullscreenInstall with Pi
pi install npm:@saburto/pi-notify-fullscreenPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./src/index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.
pi-notify-fullscreen
Fullscreen notifications for pi coding agent, powered by notify-fullscreen — a dimmed full-screen overlay that stays until you dismiss it, so you notice when pi needs you even from another app.
Demo
Requirements
- Linux with X11/Xwayland (
$DISPLAYset) notify-fullscreeninstalled —make installputs it in~/.local/bin(found automatically) or setNOTIFY_FULLSCREEN_BIN.
Install
pi install ./extensions/pi-notify-fullscreen # permanent
pi -e ./extensions/pi-notify-fullscreen/src/index.ts # one-off session
Usage
Automatic — a fullscreen Pi needs your input (confirm — Deploy to prod?)
overlay appears whenever the agent blocks on user interaction, and dismissing it
refocuses the terminal.
notify tool (the agent alerts you):
| You said | Agent passes |
|---|---|
| "Tell me when you're done" | after_task: true |
| "Remind me in 10 minutes" | delay_seconds: 600 |
| "Deploy to prod?" | ask: true → returns "User answered YES/NO." |
| — | message only |
Also opacity, font_size, ok_label, no_label, refocus (on by default).
/notify-fullscreen command (you alert yourself):
/notify-fullscreen Coffee's ready
/notify-fullscreen --in 5m Check the oven
/notify-fullscreen --after-task Review the diff
/notify-fullscreen --confirm Dinner at Zoka? # blocking yes/no
/notify-fullscreen --no-refocus Heads up only
Configuration
| Variable | Default | Meaning |
|---|---|---|
NOTIFY_FULLSCREEN_BIN | auto | Binary path override (~/.local/bin, then $PATH) |
PI_NOTIFY_ON_PROMPT | 1 | 1 confirm/input/editor prompts · all every prompt · 0 off |
PI_NOTIFY_PROMPT_REFOCUS | 1 | Refocus terminal after prompt alerts |
PI_NOTIFY_ON_SETTLED | 0 | 1 also notify "Pi has finished." whenever pi idles |
PI_NOTIFY_COOLDOWN_MS | 3000 | Min gap between automatic alerts (not tool/command use) |
PI_NOTIFY_FORCE | 0 | 1 skips Linux/$DISPLAY checks (testing) |
Notes
- Scheduled notifications are in-process timers: they die with pi, so in
one-shot
-pmode they only fire if due before exit. - Overlays are modal — pi waits for dismissal. Quitting pi leaves a shown overlay until you click it away.
- Yes/No answers come back to the agent via the binary's exit code (0/1).
Development
bun run typecheck
Test with a fake binary (no screen takeover):
printf '#!/bin/sh\necho "$*" >> /tmp/fake-notify.log\nsed "s/^/ /" >> /tmp/fake-notify.log\nexit 0\n' > /tmp/fake-notify && chmod +x /tmp/fake-notify
NOTIFY_FULLSCREEN_BIN=/tmp/fake-notify PI_NOTIFY_FORCE=1 \
pi --no-extensions -e ./extensions/pi-notify-fullscreen/src/index.ts \
-p "Call the notify tool with message 'hello from test'"