我正在做一个简短的脚本,将允许我使用视频文件作为背景使用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问题是,当使用脚本时,桌面和上面的东西仍然是可见的(参见图像),我正在寻找禁用透明性的代码。提前谢谢,并向蒂努兹问好:)

发布于 2011-10-24 13:51:00
经过一些搜索和测试,我找到了正确的选项组合,并认为最好回答我自己的问题,为那些有同样的问题:)
工作守则是:
xwinwrap -g -ni -fs -s -st -sp -b -nf -- mplayer -loop 0 -wid WID "`zenity --file-selection`"https://askubuntu.com/questions/70966
复制相似问题