this post was submitted on 10 Apr 2022
1 points (100.0% liked)

Flatpak

206 readers
11 users here now

Join our Matrix room!

founded 3 years ago
MODERATORS
 

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 :)

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here