Skip to content

[Feature Request] Picker selection defaults for specific apps #329

@different-name

Description

@different-name

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions