在脚本中禁用透明度 mplayer

在脚本中禁用透明度 mplayer

我正在编写一个简短的脚本,该脚本允许我使用视频文件作为 mplayer 的背景。我目前得到的代码是:

#!/bin/bash
if zenity --question --title="Run movie as desktop background?" --text="This script will allow you to play a movie on the desktop within your XGL environment.\n\nClick the OK button and choose the movie from the file selection."
then
xwinwrap -ni -o 0.6 -fs -s -sp -st -b -nf -- mplayer -loop 0 -wid WID "`zenity --file-selection`"
fi

问题是,使用脚本时桌面及其上的内容仍然可见(见图),我正在寻找禁用透明度的代码。提前致谢并向 tinuz 致以问候 :)

mplayer 透明度问题

答案1

经过一些搜索和测试后,我找到了正确的选项组合,并认为对于那些遇到同样问题的人来说,回答我自己的问题会很好:)

工作代码是:

xwinwrap -g -ni -fs -s -st -sp -b -nf -- mplayer -loop 0 -wid WID "`zenity --file-selection`"

相关内容