I'd like to share a side-project that I finally got to a minimally-useful state this weekend, in case others find it useful
Repository: https://gitlab.com/jokeyrhyme/xdp-hook-rs
Features (as of 0.1.2):
- monitors Location, ScreenCast, and RemoteDesktop portal sessions
- triggers configured scripts/command when these sessions are created/closed
Example use case:
- I'm using
eww
as my status bar across the top of my screen
- I wanted to show/hide indicators whenever an application was using the ScreenCast portal (e.g. https://meet.jit.si/ or Zoom, or Teams, or whatever)
- so I'm using
xdp-hook
to detect when any application creates a ScreenCast session, and update the state in eww
accordingly so that a blinking widget is displayed/removed
Suggestions and code contributions are welcome :)