Describe your feature request
Currently, foot's [bell] section correctly handles BEL-triggered notifications, but there is no built-in mechanism to detect when a shell command finishes and automatically fire a notification (or urgent hint).
To achieve this, users have to manually configure their shell to send a BEL character on each prompt — which requires either a PROMPT_COMMAND hack in bash, or a third-party library like bash-preexec to avoid conflicts with other tools that also use the DEBUG trap (e.g. oh-my-posh).
Ghostty handles this natively via its built-in shell integration: it detects command completion automatically and sends a desktop notification without any user-side shell configuration.
Proposed behavior:
An option (e.g. in [bell] or a new [shell-integration] section) to automatically send a desktop notification and/or set the urgent window hint when a command finishes — optionally only if the command ran longer than a configurable threshold (e.g. notify-after-seconds=5) and/or the window is not focused.
This would bring foot in line with what users expect from modern terminal emulators, and eliminate the need for fragile shell-side workarounds.