hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
273 stars 47 forks source link

config file? #133

Closed sharak closed 10 months ago

sharak commented 10 months ago

Hey, I'm trying to locate config file to add somethink like this:

[screencast]
exec_before=blah blah blah
exec_after=blah blah

I've tried with $XDG_CONFIG_HOME/xdg-desktop-portal-hyprland/config and $XDG_CONFIG_HOME/xdg-desktop-portal-wlr/Hyprland with no luck.

Is it possible to execute a command before screen share?

vaxerski commented 10 months ago

there is no config in xdph

sharak commented 10 months ago

Thank you.

So is it impossible to replicate the above scenario? My idea is to mute notifications when I am screen sharing.

vaxerski commented 10 months ago

you can do that by listening to hyprland's socket2 for the screencast event: https://wiki.hyprland.org/IPC/#events-list

sharak commented 10 months ago

Thank you guy!

I hadn't thought of that possibility ':)