Files
tldr/pages.zh/linux/xwinwrap.md

20 lines
854 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# xwinwrap
> 将播放器或程序作为桌面背景运行。
> 更多信息:<https://github.com/ujjwal96/xwinwrap>。
- 使用 mpv 播放视频:
`xwinwrap -b -nf -ov -- {{mpv}} -wid {{wid}} --loop --no-audio --no-resume-playback --panscan={{1.0}} {{path/to/video.mp4}}`
- 使用 mpv 全屏播放视频:
`xwinwrap -b -nf -fs -ov -- {{mpv}} -wid {{wid}} --loop --no-audio --no-resume-playback --panscan={{1.0}} {{path/to/video.mp4}}`
- 使用 mpv 播放视频,透明度为 80%
`xwinwrap -b -nf -ov -o 0.8 -- {{mpv}} -wid {{wid}} --loop --no-audio --no-resume-playback --panscan={{1.0}} {{path/to/video.mp4}}`
- 在第二个 1600x900 的显示器上使用 mpv 播放视频X 轴偏移 1920
`xwinwrap -g 1600x900+1920 -b -nf -ov -- {{mpv}} -wid {{wid}} --loop --no-audio --no-resume-playback --panscan={{1.0}} {{path/to/video.mkv}}`