Skip to content

Add wayland/sway support #45

@cjbassi

Description

@cjbassi

Maim doesn't work on wayland/sway, but grim/slurp do. It should be easy enough to check some environmental variable to determine if sway is being used and then switch to using grim/slurp if so. The most portable option would probably be to check if XDG_CURRENT_DESKTOP=sway. Let me know if there's any other/better methods too.

edit: Actually the better method would be to check if $WAYLAND_DISPLAY is set, and then swap to grim/slurp if so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions