Xwinwrap
引言
xwinwrap是一种实用软件,由David Reveman/Novell编写,它使您的桌面变得很cool。您可以运行屏幕保户程序,播放电影等并且将使它们看起来是您桌面背景的一部分。这些程序只在GNOME环境测试过。
xwinwrap is a utility, written by David Reveman/Novell, that will make cool things happen on your desktop. You can run your screensavers, play movies etc, and it will look as if they are part of your background. These instructions have only been tested in GNOME.
怎么做?
要做到这一点,以下是您必须做的:
To make it happen, this is what you have to do:
安装
安装源:
http://software.opensuse.org/download/X11:/XGL/
zypper sa http://ftp.skynet.be/pub/software.opensuse.org/X11:/XGL/openSUSE_10.3/ xgl zypper install xwinwrap
如果您喜您也可以从安装源安装 compiz 和 beryl。
自己编译
- 安装 cvs, xorg-x11-devel, make and gcc
- 创建或更改目录,用来保存将要下载的源代码。
- cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xapps co xwinwrap
- cd xwinwrap
- 然后 run make
SLED 10 和 SUSE Linux 10.1
- 编辑Makefile文件,使LD行同下面一样然后执行;
LDFLAGS+=-L/usr/X11R6/lib -lX11 -lXext -lXrender
如果一切编译妥当,现在您有了xwinwrap程序。
Packages are available in the following repository:
http://software.opensuse.org/download/X11:/XGL/
zypper sa http://ftp.skynet.be/pub/software.opensuse.org/X11:/XGL/openSUSE_10.3/ xgl zypper install xwinwrap
If you like you can install compiz and beryl packages from the repository too.
To compile it yourself
- Install cvs, xorg-x11-devel, make and gcc
- Create and change to a directory of your choice, where the source code will be downloaded to.
- cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xapps co xwinwrap
- cd xwinwrap
- Then run make
On SLED 10 and SUSE Linux 10.1
- Edit the Makefile so that the LD line looks as follows then run make;
LDFLAGS+=-L/usr/X11R6/lib -lX11 -lXext -lXrender
If everything compiles properly, you should now have a binary called xwinwrap.
Run
如果您已经从安装源安装了此软件,从终端运行以下代码:
coolbg
运行以下命令,改成自己的路径;
xwinwrap -ni -argb -fs -s -st -sp -a -nf -- /usr/lib/xscreensaver/glmatrix -window-id WID
这样,Matrix屏幕保护在前景(最前面)运行,改成在背景运行,则把 -a 改成 -b。
更多,请尝试:
xwinwrap -ni -o 0.6 -fs -s -st -sp -b -nf -- mplayer -wid WID -quiet movie.mpg
如果您安装了quake demo,您可以尝试;
xwinwrap -ni -argb -fs -s -st -sp -b -nf -- q3demo -window-id WID
如果您要您的日志消息在桌面上滚动,请以root用户运行以下代码:
xwinwrap -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/phosphor -root -window-id WID -program 'tail -f /var/log/messages'
You can run any command in place of "tail" to display it's output on screen, see man phosphor.(运行任何命令代替"tail",使得屏幕输出,看起来“荧光粉”)
If you installed the packages from the repository run the following in terminal window and follow the on screen instructions:
coolbg
Manually the following command can be run changing the relevant paths;
xwinwrap -ni -argb -fs -s -st -sp -a -nf -- /usr/lib/xscreensaver/glmatrix -window-id WID
This should run the Matrix screensaver in the foreground. To make it run in the background, change -a to -b.
More things to try:
xwinwrap -ni -o 0.6 -fs -s -st -sp -b -nf -- mplayer -wid WID -quiet movie.mpg
If you have the quake demo installed, you could try;
xwinwrap -ni -argb -fs -s -st -sp -b -nf -- q3demo -window-id WID
If you like to see the log messages scrolling on your desktop, run the following as root:
xwinwrap -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/phosphor -root -window-id WID -program 'tail -f /var/log/messages'
You can run any command in place of "tail" to display it's output on screen, see man phosphor.
选项
- FS
- fullscreen
- S
- sticky
- ST
- Skip Taskbar
- SP
- Skip Pager
- A
- Above
- B
- Below
- NF
- No Focus
- O
- Opaque
- NI
- No Input