teiler icon indicating copy to clipboard operation
teiler copied to clipboard

Add wayland/sway support

Open cjbassi opened this issue 6 years ago • 0 comments

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.

cjbassi avatar Dec 27 '18 00:12 cjbassi