Skip to content

Instantly share code, notes, and snippets.

@baruch
baruch / notifications.py
Created March 1, 2026 06:30 — forked from BaruchWeka/notifications.py
kitty notification script to mark the window urgent, get notified and pointed to the window when Claude Code waits for input
#!/usr/bin/env python
# Kitty notification scripts, save it as ~/.config/kitty/notifications.py
"""
Diagnostic notifications.py for ~/.config/kitty/notifications.py
This script runs INSIDE the kitty process (not a subprocess).
It marks the window as urgent so it shows up in the workspace and remains marked after the notification is gone.
"""