[推荐]linux下的梦幻桌面——xwinwrap,让您的桌面与众不同 07/11/28 更新

各种窗口管理器和美化相关
回复

满意度

鲜花
178
64%
鸡蛋
23
8%
不知道该扔啥
76
27%
 
总计票数: 277
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

[推荐]linux下的梦幻桌面——xwinwrap,让您的桌面与众不同 07/11/28 更新

#1

帖子 zhuqin_83 » 2007-01-28 12:35

拥有一个与众不同的桌面么?
让鲸鱼在您的桌面游泳么?
想不想 把matrix里面的特效放到您的面前?
您还想 要vista ultimate才能享受的梦幻桌面么?
。。。。
用xwinwrap吧,一切,皆有可能~~~



==========================
咳咳,大家胃口被吊足了吧?活活~
下面开始讲解xwinwrap的安装及使用。

注意大前提:必须安装并开启compiz。


1。使用屏保来装点桌面
安装:下载xwinwrap包
edgy:

代码: 全选

http://3v1n0.tuxfamily.org/pool/edgy/beryl-svn/xwinwrap_0.1+cvs20060209_i386.deb
feisty:

代码: 全选

http://3v1n0.tuxfamily.org/pool/feisty/eyecandy/xwinwrap_0.1+cvs20060209_i386.deb
然后

代码: 全选

sudo apt-get install xwinwrap
下载本贴的附件。
更新:其实gutsy也可以用这个包,只是老了一点。我把suse的rpm转过来了,12月版,看上去舒服对吧:D 这个版本自带了coolbg脚本,如果不习惯,可以仍然用我以前给的。
另外,64位的见 viewtopic.php?t=91230


使用:双击coolbg.sh,选择“在终端中运行”。(也可以把他cp到/usr/local/bin,以后就可以直接在终端敲coolbg执行)
输入以上列出的屏保名称,如鲸鱼的就是atlantis,matrix的就是glmatrix。
问你
Want to run in foreground? (y/n)
这个随便选。
少安毋躁,就会在您的桌面出现奇迹。

一些例子:

代码: 全选

xwinwrap -ni -argb -fs -s -st -sp -b -nf -o .5 -- /usr/lib/xscreensaver/lavalite -root -window-id WID #puts xscreensaver lavalite on desktop, partially transparent

xwinwrap -ni -argb -fs -s -st -sp -a -nf -- /usr/lib/xscreensaver/glmatrix -window-id WID #runs matrix screensaver in foreground

xwinwrap -ni -o 0.6 -fs -s -st -sp -b -nf -- mplayer -wid WID -quiet movie.mpg #play movie.mpg with no window

xwinwrap -ni -argb -fs -s -st -sp -b -nf -- q3demo -window-id WID #cool if quake demo is installed
*****xwinwrap的参数说明******
#-g = parse geometry
#-ni = no input
#-argb = argb visual (alpha-rgb colors)
#-fs = full screen
#-s = sticky
#-st = skip taskbar
#-sp = skip pager
#-a = above
#-b = below
#-nf = no focus
#-o OPACITY
***************************
大家可以修改coolbg脚本,让他符合你的要求。

或者,这里有一些测试过的屏保例子,据说没有问题的。

代码: 全选

Atlantis: xwinwrap -o 0.3 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/atlantis -window-id WID -delay 10000 -texture -gradient

Blocktube: xwinwrap -o 0.3 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/blocktube -window-id WID -delay 10000 -visual 1

Flurry: xwinwrap -o 0.3 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/flurry -window-id WID

Fuzzy Flakes: xwinwrap -o 0.3 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/fuzzyflakes -window-id WID -color black

Halftone: xwinwrap -o 0.3 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/halftone -window-id WID -colors 1 -cycle-speed 1000

Matrix: xwinwrap -o 0.3 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/glmatrix -window-id WID -delay 10000 -speed 0.4 -density 8 -fog -rotate -waves

Ripples: xwinwrap -o 0.3 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/ripples -window-id WID

Starwars: xwinwrap -o 0.3 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/starwars -window-id WID

Starwars (just the starfield): xwinwrap -o 0.3 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/starwars -window-id WID -lines 0
2。使用视频来装点桌面

这个其实更棒,也更灵活。

原始命令是

代码: 全选

xwinwrap -ni -o 0.6 -fs -s -sp -st -b -nf -- mplayer -wid WID -quiet 视频文件路径
其中-o后的数值(透明度,从0到1)可以自己改。
至于mplayer的后的参数可以自行根据需要修改,手册上都有。

个人比较倾向于用终端,因为好控制,也有快捷方式。

也可以把这个写成nautilus脚本,好直接选择打开某个视频文件。

代码: 全选

gedit ~/.gnome2/nautilus-scripts/video-background
然后把

代码: 全选

#!/bin/bash
xwinwrap -ni -o 0.6 -fs -s -sp -st -b -nf -- mplayer -wid WID -quiet "`echo $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS`"
粘贴进去。并对该脚本赋予可执行权限(鼠标右键点他就可以设置)。使用时,右键单击所要打开的视频文件,找到 Scripts-video-background,再左键单击即可。

还有关闭的脚本,不过我这里似乎没用,大家测试一下。如果不奏效,那么只好用killall xwinwrap命令了。

代码: 全选

gedit ~/.gnome2/nautilus-scripts/video-background-off

代码: 全选

#!/bin/bash
FILE="`echo $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS`"
kill "`pgrep -fn $FILE`" 
粘贴进去,并赋予该脚本可执行权限。关闭时需要右键点击刚才打开的那个视频文件。

===================================
附上coolbg脚本,xwinwrap deb包和几张截图。
附件
xwinwrap_061227-10.1_i386.deb
(12.5 KiB) 已下载 1662 次
Screenshot-1.png
Screenshot-2.png
Screenshot-5.png
Screenshot.png
Screenshot-6.png
Screenshot-1.png
coolbg.rar
注意,把后缀名去掉即可,此并非rar文件,只是便于某些朋友的下载。
(1.48 KiB) 已下载 2647 次
3.jpg
4.jpg
上次由 zhuqin_83 在 2007-11-28 13:40,总共编辑 21 次。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#2

帖子 bones7456 » 2007-01-28 12:53

顶一个先!
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#3

帖子 millenniumdark » 2007-01-28 12:54

好炫!
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#4

帖子 zhuqin_83 » 2007-01-28 13:00

ls的前辈好久不见,想死你了~~
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
wsk170
帖子: 123
注册时间: 2006-10-14 11:34

#5

帖子 wsk170 » 2007-01-28 13:09

一个字 爽 呵呵
zhgw01
帖子: 22
注册时间: 2006-10-30 10:51

#6

帖子 zhgw01 » 2007-01-28 13:49

为什么我的会不停的闪,看起来很难受
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#7

帖子 zhuqin_83 » 2007-01-28 14:06

ls的,beryl装了没有?
驱动装了没有?
另外,我只是在xgl下测试。aiglx的还需要大家验证。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#8

帖子 zhuqin_83 » 2007-01-28 14:46

谁能实验一下用视频文件作桌面的,理论上是可行的,实际还没有成功。
需要用mplayer。
成功的一定要回复哦~~
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#9

帖子 skyx » 2007-01-28 14:53

晕,又想装了
no security measure is worth anything if an attacker has physical access to the machine
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#10

帖子 zhuqin_83 » 2007-01-28 15:02

这个可比那个dock强多了,反正我实验成功的,也不要说是我逼着你当小白了 :D
要装赶紧,别忘了,包在首贴~~
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#11

帖子 skyx » 2007-01-28 15:11

sky@ThinkPad:~/Desktop$ sh coolbg.sh
[: 37: ==: unexpected operator
[: 37: ==: unexpected operator
coolbg.sh xwinwrap_0.1+cvs20060209_i386.deb 新文件~ 新文件 2~
installMSfonts.sh~ 新文件 新文件 1~
Select your cool background:
atlantis
Want to run in foreground? (y/n) y
/atlantis: No such file or directory
/atlantis died, exit status 2
sky@ThinkPad:~/Desktop$
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#12

帖子 skyx » 2007-01-28 15:15

应该要进屏保目录运行这个sh才对吧??
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#13

帖子 skyx » 2007-01-28 15:21

##
ARCH=`arch`
#if [ $ARCH == "i686" ]; then
SAVERPATH=/usr/lib/xscreensaver
#elif [ $ARCH == "x86_64" ]; then
#SAVERPATH=/usr/lib64/xscreensaver
#fi
搞定了,我把脚本改了一下,也就是强行设置 screensaver 的path



##
ARCH=`arch`
#if [ $ARCH == "i686" ]; then
SAVERPATH=/usr/lib/xscreensaver
#elif [ $ARCH == "x86_64" ]; then
#SAVERPATH=/usr/lib64/xscreensaver
#fi
no security measure is worth anything if an attacker has physical access to the machine
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#14

帖子 zhuqin_83 » 2007-01-28 15:29

照理不用修改的阿,那个就是if else if语句,自动判断的阿,arch就是architecture。难道你的架构不是i686?
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#15

帖子 skyx » 2007-01-28 15:36

zhuqin_83 写了:照理不用修改的阿,那个就是if else if语句,自动判断的阿,arch就是architecture。难道你的架构不是i686?
386的
附件
cool.gif
no security measure is worth anything if an attacker has physical access to the machine
回复