Take a screenshot and copy the image file to clipboard (uses xclip and wl-copy).
- Requires mpv.
- Requires
fileinPATHto get the image file mime type. - Requires
xclip(orwl-copyfor Wayland) inPATHto copy image files to clipboard.
-
You can clone this repository under your
scriptsdirectory (e.g.,~/.config/mpv/scripts).git clone git@github.com:Arnesfield/mpv-screenshot-clipboard.git screenshot-clipboard
-
(optional) Save
screenshot-clipboard.conftoscript-optsdirectory.wget github.com/Arnesfield/mpv-screenshot-clipboard/raw/main/screenshot-clipboard.conf
-
Add the following keybindings to
input.confto replace the default screenshot keybindings:s script-message screenshot-clipboard S script-message screenshot-clipboard video ctrl+s script-message screenshot-clipboard window alt+s script-message screenshot-clipboard each-frame
List of configuration options (screenshot-clipboard.conf).
Disables OSD messages by log level. Comma-separated values of: info, error
Example:
disable_osd_messages=info,error
Licensed under the MIT License.