-
-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
I am using wlx-overlay-s with Hyprland, and it is a hassle choosing my monitor every time I start the application (especially since I am not usually at my computer to interact with the picker)
I'd love to have an option to be able to configure default selections for specific applications, and skip the picker entirely
I was going to patch this feature in myself by passing the appID in from OnSelectSources:
| dbUasv CScreencopyPortal::onSelectSources(sdbus::ObjectPath requestHandle, sdbus::ObjectPath sessionHandle, std::string appID, |
As an environmental variable to the picker:
xdg-desktop-portal-hyprland/src/shared/ScreencopyShared.cpp
Lines 58 to 62 in 76bbf1a
| proc.addEnv("WAYLAND_DISPLAY", WAYLAND_DISPLAY ? WAYLAND_DISPLAY : ""); | |
| proc.addEnv("QT_QPA_PLATFORM", "wayland"); | |
| proc.addEnv("XCURSOR_SIZE", XCURSOR_SIZE ? XCURSOR_SIZE : "24"); | |
| proc.addEnv("HYPRLAND_INSTANCE_SIGNATURE", HYPRLAND_INSTANCE_SIGNATURE ? HYPRLAND_INSTANCE_SIGNATURE : "0"); | |
| proc.addEnv("XDPH_WINDOW_SHARING_LIST", buildWindowList()); // buildWindowList will sanitize any shell stuff in case the picker (qt) does something funky? It shouldn't. |
And then wrap the picker to automatically pick selections for configured apps
However, the appID for wlx-overlay-s is blank for some reason, so I wasn't able to do this
I was told to use the wlr portal, but definitely want to keep the window and region picking functionality of the hyprland portal
Metadata
Metadata
Assignees
Labels
No labels