michael-lazar / rtv

Browse Reddit from your terminal
MIT License
4.64k stars 273 forks source link

Add support for wl-copy. #693

Open rigopoui opened 5 years ago

rigopoui commented 5 years ago

Is your feature request related to a problem? Please describe. When running the program under wayland, it still tries to use xclip for copying to the clipboard, when it should use wl-copy. I cannot copy to the clipboard because I use a native wayland terminal and a wayland WM (sway).

Describe the solution you'd like Make it so when copying in a wayland environment, the right clipboard utility is being used.

Describe alternatives you've considered Running rtv in an x based terminal (like urxtv) would make it work to some extent, but that is hardly a solution.

noahfx commented 5 years ago

Hi I'll try to add support to wl-clipboard Cheers

ajakk commented 5 years ago

Hello, I've forked rtv to Gitlab. I've just pushed a commit to my dev branch there that makes the command used for copying to clipboard user-configurable as the config option clipboard_cmd. Unfortunately, I haven't gotten Wayland working on my system to test it (only an Nvidia GPU), so more tinkering with it might be necessary. Link