← 返回命令列表

Linux command

xwinwrap 命令

网络

需要网络或远程资源。

常用示例

Example

xwinwrap -b -nf -ov -- mpv --wid WID --loop --no-audio --no-resume-playback --panscan=1.0 [path/to/video.mp4]

Example

xwinwrap -b -nf -fs -ov -- mpv --wid WID --loop --no-audio --no-resume-playback --panscan=1.0 [path/to/video.mp4]

Example

xwinwrap -b -nf -ov -o 0.8 -- mpv --wid WID --loop --no-audio --no-resume-playback --panscan=1.0 [path/to/video.mp4]

Example

xwinwrap -g 1600x900+1920+0 -b -nf -ov -- mpv --wid WID --loop --no-audio --no-resume-playback --panscan=1.0 [path/to/video.mkv]

说明

xwinwrap runs a program as a desktop background window. It creates a window behind all others and passes its window ID to the child program, enabling video wallpapers and animated backgrounds. Commonly used with mpv to play videos as desktop backgrounds.

参数

-b
Below other windows
-nf
No focus
-fs
Fullscreen
-ov
Set override redirect
-o _OPACITY_
Set opacity (0.0 to 1.0)
-g _GEOMETRY_
Window geometry (WxH+X+Y)
WID
Window ID placeholder replaced with actual window ID when passed to child process
-s
Sticky window (appears on all desktops/workspaces)
-st
Skip taskbar

FAQ

What is the xwinwrap command used for?

xwinwrap runs a program as a desktop background window. It creates a window behind all others and passes its window ID to the child program, enabling video wallpapers and animated backgrounds. Commonly used with mpv to play videos as desktop backgrounds.

How do I run a basic xwinwrap example?

Run `xwinwrap -b -nf -ov -- mpv --wid WID --loop --no-audio --no-resume-playback --panscan=1.0 [path/to/video.mp4]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b do in xwinwrap?

Below other windows