- cross-posted to:
- rust
- cross-posted to:
- rust
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 ineww
accordingly so that a blinking widget is displayed/removed
Suggestions and code contributions are welcome :)
Start with the home page: https://www.freedesktop.org/wiki/Software/dbus/
There are a few “introduction” resources and an FAQ linked there that seem like a good start
The “dbus” part is really the hard part of working with xdg-desktop-portal, at least in my own experience