如何使用 xclip 从剪贴板粘贴 gif?

cha*_*pwd 7 command-line clipboard screencasting xclip

我正在尝试将 gif 复制到剪贴板中,以便能够将其粘贴到 Web 应用程序(slack、github 等)中。

我尝试过以下操作,但没有任何运气:

xclip -selection clipboard -t image/gif < /path/to/image.gif
Run Code Online (Sandbox Code Playgroud)

小智 0

你可以做

/opt/dragon --on-top --and-exit image.gif & sleep 0.1
/opt/dragon --on-top --and-exit cover.mp4 & sleep 0.3
Run Code Online (Sandbox Code Playgroud)

并使用xdotool拖放