LinuxCommandLibrary

xwinwrap

Run programs as desktop background

TLDR

Run video as background

$ xwinwrap -b -nf -ov -- mpv --wid wid --loop --no-audio --no-resume-playback --panscan=1.0 [path/to/video.mp4]
copy
Run video fullscreen
$ xwinwrap -b -nf -fs -ov -- mpv --wid wid --loop --no-audio --no-resume-playback --panscan=1.0 [path/to/video.mp4]
copy
Run with opacity
$ xwinwrap -b -nf -ov -o 0.8 -- mpv --wid wid --loop --no-audio --no-resume-playback --panscan=1.0 [path/to/video.mp4]
copy
Run on specific monitor
$ xwinwrap -g 1600x900+1920 -b -nf -ov -- mpv --wid wid --loop --no-audio --no-resume-playback --panscan=1.0 [path/to/video.mkv]
copy

SYNOPSIS

xwinwrap [OPTIONS] -- COMMAND

DESCRIPTION

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.

PARAMETERS

-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 for child process

CAVEATS

X11 only. May not work with all window managers or compositors. Child process must support window ID parameter.

SEE ALSO

mpv(1), feh(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community